Show / Hide Table of Contents

Method CreateGenerateOfflineMapParameterOverridesAsync

CreateGenerateOfflineMapParameterOverridesAsync(GenerateOfflineMapParameters)

Returns a 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
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 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
TargetVersions
.NET Standard 2.0100.4 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.4 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.4 - 100.15
iOS100.4 - 100.15
UWP100.4 - 200.0
In This Article
Back to top Copyright © 2022 Esri.