ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / AddBookmark Method / AddBookmark(MapView,String,String) Method
The map view used to create the bookmark.
The name of the new bookmark.
The description of the new bookmark.
Version

AddBookmark(MapView,String,String) Method
Creates a new bookmark using the current location and time of the map view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

mapView
The map view used to create the bookmark.
name
The name of the new bookmark.
description
The description of the new bookmark.

Return Value

The new bookmark added to the map.
Exceptions
ExceptionDescription
The MapView must contain this Map and the name of the Bookmark must be unique for the Map.
The MapView cannot be null.
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also