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
Remarks

Create a restore point with the AddRestorePoint(string) method, then pass it to UndoTo(Operation) or RedoTo(Operation). Unlike other operations, a restore point can be removed from the history with the Remove() method.

Properties

Name Description
OperationKind

Gets the kind of operation.

RestorePointName

Gets the name of the current RestorePoint.

Methods

Name Description
Redo(ReplayContext)

Redoes the current operation.

Remove()

Removes the current RestorePoint from the UndoOperations or RedoOperations.

Undo(ReplayContext)

Undoes the current operation.

VisitAffectedObjects(Action<object>)

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

See Also