Open sandboxFocus

Class RestorePoint

Represents a point to which operations can be undone or redone. A RestorePoint is a pseudo-Operation that does not represent any change.

Inheritance
RestorePoint
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public sealed class RestorePoint : Operation, IOperationDescriptor

Properties

Name Description
OperationKind

Gets the kind of operation.

RestorePointName

Gets the name of the current RestorePoint.

Methods

Name Description
Redo(ReplayContext)

Redo the current operation.

Remove()

Removes the current RestorePoint from the UndoOperations or RedoOperations.

Undo(ReplayContext)

Undo the current operation.

VisitAffectedObjects(Action<object>)

Executes a given action on all recordable objects involved with the current Operation.