Method UndoLocalEditsAsync
UndoLocalEditsAsync()
Undoes all of the local edits since the last server acknowledgment.
Declaration
public Task UndoLocalEditsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the asynchronous undo local edits operation. |
Remarks
All features that were added, updated, or deleted after the last successfully completed ServiceFeatureTable.ApplyEditsAsync() will revert back to their original state; thus, any in-memory feature(s) must be discarded in favor of a new query result.
ServiceFeatureTable.UndoLocalEditsAsync() is meant to be used for single table workflows or tables without geodatabase behavior (see below). If the service which the table belongs to has geodatabase behavior, it is highly recommended to use ServiceGeodatabase.UndoLocalEditsAsync(). Undoing edits in one table can cause data inconsistencies between the local cache and the service if ServiceFeatureTable.UndoLocalEditsAsync() is used.
For example, when tables have a composite relationship, undoing only the origin feature would violate the composite relationship rule that an origin and destination feature must be either deleted together or not at all.
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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.3 - 200.6 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 200.6 |