ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / OperationManager Property
Example

In This Topic
    OperationManager Property (Map)
    In This Topic
    Gets the OperationManager.
    Syntax
    public OperationManager OperationManager {get;}
    Public ReadOnly Property OperationManager As OperationManager
    Example
    Undo/Redo the Most Recent Operation
    //undo
    if (MapView.Active.Map.OperationManager.CanUndo)
      MapView.Active.Map.OperationManager.UndoAsync();//await as needed
    
    //redo
    if (MapView.Active.Map.OperationManager.CanRedo)
      MapView.Active.Map.OperationManager.RedoAsync();//await as needed
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also