ArcGIS Pro 2.6 API Reference Guide
ExportBookmarks Method

ArcGIS.Desktop.Mapping Namespace > Map Class : ExportBookmarks Method
The path to the BKMX file
Export bookmarks from the active map or scene to a BKMX file. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void ExportBookmarks( 
   string filePath
)
Public Sub ExportBookmarks( _
   ByVal filePath As String _
) 

Parameters

filePath
The path to the BKMX file
Exceptions
ExceptionDescription
Current project is null.
Active map view is null.
Invalid map path.
path is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
path is null.
The specified path, file name, or both exceed the system-defined maximum length.
The specified path is invalid, (for example, it is on an unmapped drive).
An I/O error occurred while opening the file.
path specified a file that is read-only and access is not Read or path specified a directory or path specified a directory or the caller does not have the required permission. or mode is Create and the specified file is a hidden file.
mode, access, or share specified an invalid value.
The file specified in path was not found.
path is in an invalid format.
General export failure.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Map Class
Map Members