ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapFactory Class / CopyMap Method
The map to be copied
Version

CopyMap Method (MapFactory)
Copies the input map and adds it to the project. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Map CopyMap( 
   Map map
)

Parameters

map
The map to be copied

Return Value

Map
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
The map is null.
Remarks
Use FrameworkApplication.Panes.CreateMapPaneAsync(mapCopy) to activate the newly copied map (if needed)
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also