Undoes all of the local edits since the last server acknowledgment.
public Task UndoLocalEditsAsync()
A task that represents the asynchronous undo local edits operation.
All features that were added, updated, or deleted after the last successfully completed ApplyEditsAsync() will revert back to their original state; thus, any in-memory feature(s) must be discarded in favor of a new query result.
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 UndoLocalEditsAsync(). Undoing edits in one table can cause data inconsistencies between the local cache and the service if 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
Platforms and versions
|.NET Standard 2.0||100.3 - 200.2|
|.NET 6.0||100.13 - 200.2|
|.NET 6.0 Windows||100.13 - 200.2|
|.NET 6.0 Android||200.0 - 200.2|
|.NET 6.0 iOS||200.0 - 200.2|
|.NET Framework||100.3 - 200.2|
|.NET 5||100.10 - 100.12|
|.NET Core 3.1||100.7 - 100.12|
|Android||100.3 - 100.15|
|iOS||100.3 - 100.15|
|UWP||100.3 - 200.2|