Method CreateAsync
CreateAsync(PortalItem)
Initializes a new instance of the PreplannedMapArea class from the specified PortalItem. The resulting map area will be loaded.
Declaration
public static Task<PreplannedMapArea> CreateAsync(PortalItem portalItem)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | The preplanned map area portal item. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PreplannedMapArea> | A System.Threading.Tasks.Task that represents the async create operation. The task's result will be the new PreplannedMapArea. |
Remarks
The portalItem
must of type WebMap.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |
CreateAsync(PortalItem, CancellationToken)
Initializes a new instance of the PreplannedMapArea class from the specified PortalItem and allowing cancellation. The resulting map area will be loaded.
Declaration
public static async Task<PreplannedMapArea> CreateAsync(PortalItem portalItem, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | The preplanned map area portal item |
System.Threading.CancellationToken | cancellationToken | System.Threading.CancellationToken to cancel the operation if necessary. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PreplannedMapArea> | A System.Threading.Tasks.Task that represents the async create operation. The task's result will be the new PreplannedMapArea. |
Remarks
The portalItem
must of type WebMap.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.14 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |