ArcGIS Pro 2.6 API Reference Guide
CopyMap Method (MapFactory)

ArcGIS.Desktop.Mapping Namespace > MapFactory Class : CopyMap Method
The map to be copied
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
)
Public Function CopyMap( _
   ByVal map As Map _
) As 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.
Remarks
Use FrameworkApplication.Panes.CreateMapPaneAsync(mapCopy) to activate the newly copied map (if needed)
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MapFactory Class
MapFactory Members