ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework Namespace / OperationManager Class / DoAsync Method
The operation to perform.

In This Topic
    DoAsync Method (OperationManager)
    In This Topic
    Performs the specified operation asynchronously and adds it to the undo stack.
    Syntax
    public virtual Task DoAsync( 
       Operation operation
    )
    Public Overridable Function DoAsync( _
       ByVal operation As Operation _
    ) As Task

    Parameters

    operation
    The operation to perform.

    Return Value

    A task that represents the work queued to execute in the ThreadPool.
    Exceptions
    ExceptionDescription
    Thrown when an invalid operation is passed in.
    Remarks

    The specified operation is performed by calling its ArcGIS.Desktop.Framework.Contracts.Operation.DoAsync method and it is added to this OperationManager's undo stack. If operations are currently being grouped by means of CreateCompositeOperation, the operation will not directly appear on the stack and will instead be incorporated into the composite operation created.

    Whenever an operation is completed via DoAsync or Do, the redo stack is cleared of all operations belonging to the same category.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also