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
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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.3 - 200.7
Xamarin.Android100.3 - 100.15
Xamarin.iOS100.3 - 100.15
UWP100.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.