PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Recorder Class / Recorder Methods / Recorder.​Open­Scope Method / Recorder.​Open­Scope Method (Recording­Scope­Option)

Recorder.OpenScope Method (RecordingScopeOption)

Opens an unnamed RecordingScope.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: (
public RecordingScope OpenScope(
	RecordingScopeOption option = RecordingScopeOption.Default


option (Optional)
Type: PostSharp.Patterns.Recording.RecordingScopeOption
Scope options. Specify this parameter if you want the scope to be Atomic.

Return Value

Type: RecordingScope
A RecordingScope object, which should be closed using Complete() or Dispose().

The name of the scope can be set at any time by setting the OperationDescriptor property.

See Also