ArcGIS Pro 2.6 API Reference Guide
ImportBookmarks Method

ArcGIS.Desktop.Mapping Namespace > Map Class : ImportBookmarks Method
The path to the file
Import bookmarks from ArcMap, ArcGlobe, and ArcScene bookmark files (*.dat) or ArcGIS Pro bookmark files (*.bmkx). This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

filePath
The path to the file

Return Value

The collection of bookmarks for the map.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Current project is null.
Active map view is null.
Invalid map path.
Not supported file type.
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).
path specified a directory or the caller does not have the required permission.
The file specified in path was not found.
path is in an invalid format.
An I/O error occurred while opening the file.
General import failure.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Map Class
Map Members