Show / Hide Table of Contents

Method SetThumbnail

SetThumbnail(Stream)

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

Declaration
public override void SetThumbnail(Stream imageBytes)
Parameters
Type Name Description
Stream imageBytes

PNG-encoded thumbnail image.

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

See Also
Thumbnail

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.4 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.4 - 100.14
iOS100.4 - 100.15
UWP100.4 - 200.0
In This Article
Back to top Copyright © 2022 Esri.