ArcGIS Pro 2.9 API Reference Guide
ExportVectorTileCache Method

ArcGIS.Desktop.Mapping.Offline Namespace > GenerateOfflineMap Class : ExportVectorTileCache Method
The map whose vector tile service content will be exported
The parameters to use for the export
Export vector tile caches from the map using the specified ExportTileCacheParams. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void ExportVectorTileCache( 
   Map map,
   ExportTileCacheParams cacheParams
)
Public Sub ExportVectorTileCache( _
   ByVal map As Map, _
   ByVal cacheParams As ExportTileCacheParams _
) 

Parameters

map
The map whose vector tile service content will be exported
cacheParams
The parameters to use for the export
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Map cannot be null
Extent cannot be null or empty
Map and extent spatial references must be equal
No vector tile cache content to export
Remarks
Exported vector tile caches are copied to the specified ExportTileCacheParams.DestinationFolder. Use GetCanExportVectorTileCache to determine if a map has vector tile service content that can be exported.
If a map has no vector tile service content that can be exported a System.InvalidOperationException is thrown. At the conclusion of the export, a layer is created for each exported vector tile cache.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GenerateOfflineMap Class
GenerateOfflineMap Members