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

In This Topic
    RedoAsync(Int32) Method
    In This Topic
    Redo the specified number of operations in the redo stack.
    Syntax
    Public Overloads Function RedoAsync( _
       ByVal count As Integer _
    ) As Task
    public Task RedoAsync( 
       int count
    )

    Parameters

    count
    The number of operations to restart.

    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