ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Bookmark Class / SetThumbnail Method
The thumbnail.
Example Version

SetThumbnail Method
Set the thumbnail for the Bookmark. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetThumbnail( 
   BitmapSource thumbnail
)

Parameters

thumbnail
The thumbnail.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
Change the thumbnail for a bookmark
public Task SetThumbnailAsync(Bookmark bookmark, string imagePath)
{
  //Set the thumbnail to an image on disk, ie. C:\Pictures\MyPicture.png.
  BitmapImage image = new BitmapImage(new Uri(imagePath, UriKind.RelativeOrAbsolute));
  return QueuedTask.Run(() => bookmark.SetThumbnail(image));
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also