ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework Namespace / CompositeOperationManager Class / UndoAsync Method / UndoAsync() Method

In This Topic
    UndoAsync() Method
    In This Topic
    Rolls back the most recent operation to reset the last action performed with ArcGIS.Desktop.Framework.Contracts.Operation.Do or ArcGIS.Desktop.Framework.Contracts.Operation.DoAsync.
    Syntax
    Public Overloads Overrides NotOverridable Function UndoAsync() As Task
    public override Task UndoAsync()

    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.
    Remarks

    The most recent operation 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 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also