PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Recording Namespace/Recording­Scope Class/Recording­Scope Methods/Recording­Scope.​Dispose Method

RecordingScope.Dispose Method

Closes the current RecordingScope.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.6.12.0 (6.6.12.0)
Syntax
C#
public void Dispose()

Implements

IDisposable.Dispose()
Remarks

If the current RecordingScope is atomic, invoking Dispose() without Complete() will undo all changes done in the current scope. In other words, Dispose() without Complete() has rollback semantics.

See Also