Method ExportTileCache
ExportTileCache(ExportTileCacheParameters, String)
Start and return a new export tile cache job.
Declaration
public ExportTileCacheJob ExportTileCache(ExportTileCacheParameters parameters, string downloadFilePath)
Parameters
Type | Name | Description |
---|---|---|
ExportTileCacheParameters | parameters | Export tile cache parameters to be used in exporting. |
System.String | downloadFilePath | Downloaded tile cache file path that ends with .tpk or .tpkx, depending on the desired format. |
Returns
Type | Description |
---|---|
ExportTileCacheJob | A task offline job of type TileCache. |
Remarks
The resulting job will export tiles from the service, referenced by the Uri property (or
its export-enabled alternative), to a local tile cache at the downloadFilePath
. The
format of the tile cache is determined by the file extension supplied in the
downloadFilePath
parameter.
If the download file path ends with ".tpk" the tile cache will use the legacy compact format.
If the download file path ends with ".tpkx" the tile cache will use the current compact version 2 format.
If the service does not support exporting tiles, the job will fail with TileCacheCompactV2ExportNotEnabledException.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |