Recorder.AddRestorePoint Method |
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public RestorePoint AddRestorePoint( string name = null )
Parameters
- name (Optional)
- Type: System.String
The name of the restore point, or null to create an unnamed restore point.
Return Value
Type: RestorePointThe newly created RestorePoint.
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.