Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.2.1 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.2.1 - 100.15
iOS100.2.1 - 100.15
UWP100.2.1 - 200.0

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
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.2.1 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.2.1 - 100.14
iOS100.2.1 - 100.15
UWP100.2.1 - 200.0
In This Article
Back to top Copyright © 2022 Esri.