Click or drag to resize

FeatureCollectionSaveAsync Method (CancellationToken)

Save any changes that have been made to the FeatureCollection to the associated PortalItem.

Namespace:  Esri.ArcGISRuntime.Data
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.6.0.0
Syntax
C#
public Task SaveAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
CancellationToken

Return Value

Type: Task
A task that represents the asynchronous save operation.
Exceptions
ExceptionCondition
InvalidOperationException
Remarks
Asynchronous method to save any changes that have been made to the FeatureCollection allowing cancellation. The FeatureCollection must have been constructed using the FeatureCollection(PortalItem) constructor to associate it with a PortalItem object, and must be loaded.

Updates the FeatureCollection content data on the portal and also updates the portal item properties stored on the portal to match those stored within the FeatureCollection's PortalItem object.

See Also