ArcGIS Pro 2.8 API Reference Guide
Export(ExportFormat,Camera) Method

ArcGIS.Desktop.Mapping Namespace > MapView Class > Export Method : Export(ExportFormat,Camera) Method
Provides the information for the export output.
Defines the geographic area of the map to export. The current camera is used, when it's not provided.
Export a mapview to a variety of formats. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void Export( 
   ExportFormat exportFormat,
   Camera camera
)
Public Overloads Sub Export( _
   ByVal exportFormat As ExportFormat, _
   ByVal camera As Camera _
) 

Parameters

exportFormat
Provides the information for the export output.
camera
Defines the geographic area of the map to export. The current camera is used, when it's not provided.
Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run.
File path must be valid and file must be accessible.
Remarks
Multiple examples are provided with each format derived from ExportFormat.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members
Overload List