PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Recording­Scope­Attribute Class / Recording­Scope­Attribute Constructor / Recording­Scope­Attribute Constructor (String, Recording­Scope­Option)

RecordingScopeAttribute Constructor (String, RecordingScopeOption)

Initializes a new instance of the RecordingScopeAttribute class and specify the scope name.

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public RecordingScopeAttribute(
	string name,
	RecordingScopeOption option = RecordingScopeOption.Default
)

Parameters

name
Type: System.String
The scope name, or null.
option (Optional)
Type: PostSharp.Patterns.Recording.RecordingScopeOption
Scope options.
See Also