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 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.1 - 100.15 |
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 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.1 - 100.15 |