ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework Namespace / OperationManager Class / RedoAsync Method / RedoAsync(String) Method
The category of operation to redo.
Example

In This Topic
    RedoAsync(String) Method
    In This Topic
    Redo all the operations in the redo stack that belong to the specified category.
    Syntax
    Public Overloads Overridable Function RedoAsync( _
       ByVal category As String _
    ) As Task
    public virtual Task RedoAsync( 
       string category
    )

    Parameters

    category
    The category of operation to redo.

    Return Value

    A task that represents the work queued to execute in the ThreadPool.
    Example
    Undo/Redo the Most Recent Operation
    // Demonstrates how to undo and redo the most recent operation using the map's operation manager.
      //undo
      if (activeMap.OperationManager.CanUndo)
        activeMap.OperationManager?.UndoAsync();//await as needed
    
      //redo
      if (MapView.Active.Map.OperationManager.CanRedo)
        activeMap.OperationManager?.RedoAsync();//await as needed
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also