ArcGIS Pro 2.6 API Reference Guide
SaveAsFile Method (Map)

ArcGIS.Desktop.Mapping Namespace > Map Class : SaveAsFile Method
A string represent the full path of the output file.
Saves the map as a mapx file. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SaveAsFile( 
   string fullPathToMapXFile
)
Public Sub SaveAsFile( _
   ByVal fullPathToMapXFile As String _
) 

Parameters

fullPathToMapXFile
A string represent the full path of the output file.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Map Class
Map Members