Parameters
- mapView
- The map view used to update the bookmark.
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
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); }); }
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); }); }
Target Platforms: Windows 11, Windows 10, Windows 8.1