Method CreateGenerateOfflineMapParameterOverridesAsync
CreateGenerateOfflineMapParameterOverridesAsync(GenerateOfflineMapParameters)
Returns a System.Threading.Tasks.Task<TResult> created from the specified GenerateOfflineMapParameters.
Declaration
public Task<GenerateOfflineMapParameterOverrides> CreateGenerateOfflineMapParameterOverridesAsync(GenerateOfflineMapParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
GenerateOfflineMapParameters | parameters | The generate offline map parameters from which the overrides will be populated. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GenerateOfflineMapParameterOverrides> | A task that represents the asynchronous creation of default generate offline map parameters overrides. The value of the task result is a GenerateOfflineMapParameterOverrides object. |
Remarks
When the task completes the GenerateOfflineMapParameterOverrides will be populated reflecting the values in the GenerateOfflineMapParameters parameters. The overrides may be inspected and modified to change the offline data before passing onto creating a job with GenerateOfflineMap(GenerateOfflineMapParameters, String, GenerateOfflineMapParameterOverrides).
If there are errors with loading individual layers or tables, or they cannot be taken offline due to service settings, the outcome depends on the value of ContinueOnErrors.
If ContinueOnErrors is true
, the overrides correspond to the
remaining layers and tables that can go offline.
The resulting offline map will not contain the layers or tables which had errors.
If ContinueOnErrors is false
, the
System.Threading.Tasks.Task will fail immediately with an exception from the failed layer or table.
To check upfront which layers or tables are valid for taking offline see GetOfflineMapCapabilitiesAsync(GenerateOfflineMapParameters).
If ReferenceBasemapDirectory is set, the overrides corresponding to online basemap layers will be omitted, since no basemap layers will be downloaded.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 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.4 - 200.6 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.6 |