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
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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7

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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.