Click or drag to resize

ExportVectorTilesTaskCreateAsync Method (Uri, Credential)

Initializes a new instance of the ExportVectorTilesTask class from a vector tile service.

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public static Task<ExportVectorTilesTask> CreateAsync(
	Uri serviceUri,
	Credential credential = null
)

Parameters

serviceUri
Type: SystemUri
The URL of a service or portal item to be used for exporting vector tiles.
credential (Optional)
Type: Esri.ArcGISRuntime.SecurityCredential
The security credential for the online map service.

Return Value

Type: TaskExportVectorTilesTask
The task object representing the asynchronous create operation. The value of the task result is an ExportVectorTilesTask object.
Remarks
The serviceUri can be for:
  • A vector tile server that ends in "VectorTileServer" and is the REST end-point used to export vector tile packages. The vector tile service must be enabled for export or the task will fail to load.
  • A portal item for a vector tile service or a vector tiled layer with a custom style applied.
  • A vector basemap layer created using a BasemapStyle.
If the serviceUri represents a PortalItem that can be used to download vector tiles or style resources, the PortalItem property will be populated.
See Also