ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Operation Class
Members

In This Topic
    Operation Class
    In This Topic
    Represents an action, or group of actions, that can be undone and redone. This is an abstract class.
    Syntax
    public abstract class Operation : System.IDisposable  
    Public MustInherit Class Operation 
       Implements System.IDisposable 
    Remarks

    To participate in the undo/redo framework, an Operation must be created and added to the appropriate ArcGIS.Desktop.Framework.OperationManager. There isn't one operation stack for the application, each Pane and DockPane decides how its operations are managed. For example, different maps have their own operation stack; changing the visibility of layers in one map will not be undoable if the focus switches to a different map. Although each Pane and DockPane are given the opportunity to provide their own OperationManager, they may elect to share the same one. For example, all map panes rely on an OperationManager managed by a Map object. This way, all the map panes for the same Map share the same OperationManager. In this case, changing the visibility of layers will show up in the undo/redo stack for all map panes showing this Map.

    Operations can also be categorized so that operations belonging only to a specific category can be undone. For example, ArcGIS Pro has editing and mapping operations; if these operations are intermixed, users can elect to just undo the editing operations and skip over the mapping operations. Categorized operations must be mutually exclusive.

    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Contracts.Operation
          ArcGIS.Desktop.Framework.Contracts.CompositeOperation

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also