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 | FeatureCollection isn't loaded -or- isn't associated with a portal item -or- portal is accessed anonymously. |
| LicensingException | Current license does not allow editing portal content. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
SaveAsync(CancellationToken)
Save any changes that have been made to the FeatureCollection to the associated PortalItem.
Declaration
public 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 | FeatureCollection isn't loaded -or- FeatureCollection isn't associated with a portal item -or- portal is accessed anonymously. |
| LicensingException | Current license does not allow editing portal content |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.14 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |