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

In This Topic
    SetThumbnail Method
    In This Topic
    Set the thumbnail for the Bookmark. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetThumbnail( 
       BitmapSource thumbnail
    )
    Public Sub SetThumbnail( _
       ByVal thumbnail As BitmapSource _
    ) 

    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