ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / SaveAsWebMapFile Method

SaveAsWebMapFile Method
Overload List
OverloadDescription
Save the current map to webmap file format. This method must be called on the MCT. Use QueuedTask.Run.  
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.9 or higher.
See Also