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

In This Topic
    DoAsync Method (CompositeOperationManager)
    In This Topic
    Performs the specified operation asynchronously and adds it to the undo stack.
    Syntax
    public override Task DoAsync( 
       Operation operation
    )
    Public Overrides NotOverridable 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.
    Thrown when the operation passed in does not belong to the established FilterCategory.
    Remarks

    The specified operation is performed by calling its ArcGIS.Desktop.Framework.Contracts.Operation.DoAsync method and it is added to this CompositeOperationManager's undo stack.

    Whenever an operation is completed, each OperationManager's redo stack is cleared of all operations.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also