Show / Hide Table of Contents

Method CreateAsync

CreateAsync(Map)

Initializes a new instance of the OfflineMapTask class for the provided online map.

Declaration
public static async Task<OfflineMapTask> CreateAsync(Map onlineMap)
Parameters
Type Name Description
Map onlineMap

The online map specifying the map to take offline.

Returns
Type Description
System.Threading.Tasks.Task<OfflineMapTask>

The Task object representing the asynchronous create operation. The value of the Task result is a OfflineMapTask object.

Remarks

The online map must be associated with a PortalItem of type WebMap either on ArcGIS Online or an on-premise ArcGIS Portal.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7

CreateAsync(PortalItem)

Initializes a new instance of the OfflineMapTask class from the specified PortalItem. The portal item must represent a webmap.

Declaration
public static async Task<OfflineMapTask> CreateAsync(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

The PortalItem specifying a webmap to take offline.

Returns
Type Description
System.Threading.Tasks.Task<OfflineMapTask>

The Task object representing the asynchronous create operation. The value of the Task result is an OfflineMapTask object.

Remarks

The PortalItem must be of type WebMap either on ArcGIS Online or an on-premise ArcGIS Enterprise Portal.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.