Show / Hide Table of Contents

Method SetThumbnail

SetThumbnail(Nullable<Stream>)

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

Declaration
public override void SetThumbnail(Stream? imageBytes)
Parameters
Type Name Description
System.Nullable<Stream> imageBytes

PNG-encoded thumbnail image.

Overrides
Item.SetThumbnail(Nullable<Stream>)
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 if a thumbnail already exists on the portal.

See Also
Thumbnail

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.