PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​RecordingRestore­Point
Open sandboxFocus

RestorePoint Class

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
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)
Remove()

Removes the current RestorePoint from the UndoOperations or RedoOperations.

Undo(ReplayContext)
VisitAffectedObjects(Action<Object>)

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