Click or drag to resize

PreplannedMapAreaCreateAsync Method (PortalItem, CancellationToken)

Initializes a new instance of the PreplannedMapArea class from the specified PortalItem and allowing cancellation. The resulting map area will be loaded.

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public static Task<PreplannedMapArea> CreateAsync(
	PortalItem portalItem,
	CancellationToken cancellationToken
)

Parameters

portalItem
Type: Esri.ArcGISRuntime.PortalPortalItem
The preplanned map area portal item
cancellationToken
Type: System.ThreadingCancellationToken
CancellationToken to cancel the operation if necessary.

Return Value

Type: TaskPreplannedMapArea
A Task that represents the async create operation. The task's result will be the new PreplannedMapArea.
Remarks
The portalItem must of type WebMap.
See Also