Operation Class
Base class for all operations. An operation is any change of state that can be appended to a Recorder and be therefore involved in an undo/redo operation.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Recording.Operation
    More...

Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public abstract class Operation : IOperationDescriptor

The Operation type exposes the following members.

Constructors
  NameDescription
Protected methodOperation
Initializes a new instance of the Operation class.
Top
Properties
  NameDescription
Public propertyName
Gets the operation name.
Public propertyOperationDescriptor
Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description of the current operation.
Public propertyOperationKind
Gets the kind of operation.
Top
Methods
  NameDescription
Protected methodGetMergeStatus
Determines how a given Operation can be merged with the current Operation.
Protected methodMerge
Merges a given Operation into the current Operation.
Protected methodRedo
Redo the current operation.
Protected methodUndo
Undo the current operation.
Public methodVisitAffectedObjects
Executes a given action on all recordable objects involved with the current Operation.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also
Inheritance Hierarchy