Show / Hide Table of Contents

Method SaveAsync

SaveAsync()

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

Declaration
public Task SaveAsync()
Returns
Type Description
Task

A task that represents the asynchronous save operation.

Remarks

Asynchronous method to save any changes that have been made to the FeatureCollection. The FeatureCollection must have been constructed using the FeatureCollection(PortalItem) constructor to associate it with a PortalItem object, and must be loaded, or must have been previous saved using SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, RuntimeImage).

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.

Exceptions
Type Condition
InvalidOperationException

Thrown if the instance isn't associated with a portal item, isn't loaded, or if the associated portal isn't is accessed anonymously.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

SaveAsync(CancellationToken)

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

Declaration
public async Task SaveAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

CancellationToken

Returns
Type Description
Task

A task that represents the asynchronous save operation.

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.

Exceptions
Type Condition
InvalidOperationException

Thrown if the instance isn't associated with a portal item, isn't loaded, or if the associated portal isn't is accessed anomynously.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.14
In This Article
Back to top Copyright © 2022 Esri.