ArcGIS Pro 2.7 API Reference Guide
GetBookmarks Method (Map)
Example 

ArcGIS.Desktop.Mapping Namespace > Map Class : GetBookmarks Method
Returns the map's collection of bookmarks. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Return Value

The collection of bookmarks for the map.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
Get the collection of bookmarks for a map.
public Task<ReadOnlyObservableCollection<Bookmark>> GetActiveMapBookmarksAsync()
{
  return QueuedTask.Run(() =>
  {
    //Get the active map view.
    var mapView = MapView.Active;
    if (mapView == null)
      return null;

    //Return the collection of bookmarks for the map.
    return mapView.Map.GetBookmarks();
  });
}
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members