Click or drag to resize

PortalItemSetThumbnailWithImage Method

Sets the thumbnail for this portal item from the given data stream.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.6.0.0
Syntax
C#
public void SetThumbnailWithImage(
	Stream imageBytes
)

Parameters

imageBytes
Type: System.IOStream
PNG-encoded thumbnail image.
Remarks

Changes to the thumbnail are visible only locally until this item's properties are updated on the portal.

Note that deleting thumbnails from the portal is not supported. Passing null for imageBytes will result in an InvalidOperationException if a thumbnail already exists on the portal.

See Also