ArcGIS Pro 2.7 API Reference Guide
UndoAsync(String) Method

ArcGIS.Desktop.Framework Namespace > OperationManager Class > UndoAsync Method : UndoAsync(String) Method
The category of operation of undo.
Rolls back the most recent operation belonging to a specific category.
Syntax
public virtual Task UndoAsync( 
   string category
)
Public Overloads Overridable Function UndoAsync( _
   ByVal category As String _
) As Task

Parameters

category
The category of operation of undo.

Return Value

A task that represents the work queued to execute in the ThreadPool.
Exceptions
ExceptionDescription
Thrown when the operation's ArcGIS.Desktop.Framework.Contracts.Operation.CanUndo method returns false.
Thrown when the operation's ArcGIS.Desktop.Framework.Contracts.Operation.CanUndo method returns false.
Remarks

The most recent operation of a particular category in the stack is undone by calling its ArcGIS.Desktop.Framework.Contracts.Operation.UndoAsync method. The operation is then added to this OperationManager's redo stack.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

OperationManager Class
OperationManager Members
Overload List