Method ApplyEditsAsync
ApplyEditsAsync()
Asynchronously uploads any changes to the local table to the feature service.
Declaration
public Task<IReadOnlyList<EditResult>> ApplyEditsAsync()
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<EditResult>> | A read-only list of EditResult representing the results of applying edits to a feature service. |
Remarks
ServiceFeatureTable.ApplyEditsAsync() is meant to be used for single table workflows or tables without geodatabase behavior (see below). If an edit on this table can cause an edit to another table due to geodatabase behavior, it is highly recommended to use ServiceGeodatabase.ApplyEditsAsync() instead to prevent data inconsistency, so that dependent edits are all applied or none are (if an error occurs).
For example, when tables have a composite relationship, applying the delete of a destination feature in a composite relationship deletion will only delete the destination feature on the server, therefore causing inconsistency in the data.
Areas which have geodatabase behavior:
- Composite relationships
- Annotation feature layers
- Utility network association deletion semantics
- Attribute rules
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 |
Relevant samples
ApplyEditsAsync(CancellationToken)
Asynchronously uploads any changes to the local table to the feature service.
Declaration
public Task<IReadOnlyList<EditResult>> ApplyEditsAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<EditResult>> | A read-only list of EditResult representing the results of applying edits to a feature service. |
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 |