ArcGIS Pro 3.7 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 Sub SetThumbnail( _
       ByVal thumbnail As BitmapSource _
    ) 
    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
    {
      //Set the thumbnail to an image on disk, i.e. C:\Pictures\MyPicture.png.
      BitmapImage image = new(new Uri(imagePath, UriKind.RelativeOrAbsolute));
      oldBookmark.SetThumbnail(image);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also