PostSharpAPI ReferencePost­Sharp.​Patterns.​RecordingRecorderAdd­Restore­Point
Open sandboxFocus

Recorder.AddRestorePoint Method

AddRestorePoint(String)

Adds new restore point with given name.

Declaration
public RestorePoint AddRestorePoint(string name = null)
Parameters
Type Name Description
System.String name

The name of the restore point, or null to create an unnamed restore point.

Returns
Type Description
RestorePoint

The newly created RestorePoint.

Remarks

A RestorePoint can be used as an argument to the UndoTo(Operation) or RedoTo(Operation) method.

To remove a RestorePoint from UndoOperations or RedoOperations, call the Remove() method.