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 |
---|---|
Task<PreplannedMapArea> | A 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.2 |
.NET 6.0 | 100.13 - 200.2 |
.NET 6.0 Windows | 100.13 - 200.2 |
.NET 6.0 Android | 200.0 - 200.2 |
.NET 6.0 iOS | 200.0 - 200.2 |
.NET Framework | 100.2.1 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Android | 100.2.1 - 100.15 |
iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.2 |
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 |
CancellationToken | cancellationToken | CancellationToken to cancel the operation if necessary. |
Returns
Type | Description |
---|---|
Task<PreplannedMapArea> | A 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.2 |
.NET 6.0 | 100.13 - 200.2 |
.NET 6.0 Windows | 100.13 - 200.2 |
.NET 6.0 Android | 200.2 |
.NET 6.0 iOS | 200.0 - 200.2 |
.NET Framework | 100.2.1 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Android | 100.2.1 - 100.14 |
iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.2 |