Method CreateGenerateOfflineMapParameterOverridesAsync
CreateGenerateOfflineMapParameterOverridesAsync(GenerateOfflineMapParameters)
GenerateOfflineMapParameterOverrides created from the specified GenerateOfflineMapParameters parameters.
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 |
|---|---|
| Task<GenerateOfflineMapParameterOverrides> | GenerateOfflineMapParameterOverrides created from the specified GenerateOfflineMapParameters parameters. |
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 that had errors.
If ContinueOnErrors is false, an exception is thrown
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.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.4 - 200.8 |
| Xamarin.Android | 100.4 - 100.15 |
| Xamarin.iOS | 100.4 - 100.15 |
| UWP | 100.4 - 200.8 |