Show / Hide Table of Contents

Method UndoLocalEditsAsync

UndoLocalEditsAsync()

Undoes all of the local edits since the last server acknowledgment.

Declaration
public Task UndoLocalEditsAsync()
Returns
Type Description
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 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

Applies to

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