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
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.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
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
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.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |