Parameters
- mapView
- The map view used to create the bookmark.
- name
- The name of the new bookmark.
Return Value
The new bookmark added to the map.
| Exception | Description |
|---|---|
| System.ArgumentException | The MapView must contain this Map and the name of the Bookmark must be unique for the Map. |
| System.ArgumentNullException | The MapView cannot be null. |
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
// Note: Needs QueuedTask to run
{
//Adding a new bookmark using the active view.
mapView.Map.AddBookmark(mapView, bookmarkName);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)