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

In This Topic
    RedoAsync(Int32,String) Method
    In This Topic
    The number and category of operations to redo.
    Syntax
    Public Overloads Function RedoAsync( _
       ByVal count As Integer, _
       ByVal category As String _
    ) As Task
    public Task RedoAsync( 
       int count,
       string category
    )

    Parameters

    count
    The number of operations to restart.
    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