ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Bookmark Class / Update(MapView) Method
The map view used to update the bookmark.
Example Version

Update(MapView) Method
Updates the bookmark to the current location and time of a map view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void Update( 
   MapView mapView
)

Parameters

mapView
The map view used to update the bookmark.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
Update Bookmark
public Task UpdateBookmarkAsync(Bookmark bookmark)
{
  return QueuedTask.Run(() =>
  {
    //Get the active map view.
    var mapView = MapView.Active;
    if (mapView == null)
      return;

    //Update the bookmark using the active map view.
    bookmark.Update(mapView);
  });
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also