PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Model.​Controls Namespace/Undo­Command Class
UndoCommand Class
A command that undoes a single operation in a Recorder.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Model.Controls.UndoRedoCommandBase
    PostSharp.Patterns.Model.Controls.UndoCommand

Namespace: PostSharp.Patterns.Model.Controls
Assembly: PostSharp.Patterns.Model.Controls (in PostSharp.Patterns.Model.Controls.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public sealed class UndoCommand : UndoRedoCommandBase

The UndoCommand type exposes the following members.

Constructors
  NameDescription
Public methodUndoCommand()
Initializes a new instance of the UndoCommand class and binds it to the DefaultRecorder.
Public methodUndoCommand(Recorder)
Initializes a new instance of the UndoCommand class and specifies to which Recorder it should be bound.
Properties
  NameDescription
Public propertyRecorder
Gets the Recorder bound to this command.
(Inherited from UndoRedoCommandBase.)
Methods
  NameDescription
Public methodCanExecute
Defines the method that determines whether the command can execute in its current state.
(Inherited from UndoRedoCommandBase.)
Public methodExecute
Defines the method to be called when the command is invoked.
(Inherited from UndoRedoCommandBase.)
Events
  NameDescription
Public eventCanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
(Inherited from UndoRedoCommandBase.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also