Custom attribute that, when applied to a method, defines the characteristics of the RecordingScope that corresponds to the target method.
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property, AllowMultiple = false)]
[MulticastAttributeUsage(MulticastTargets.Method, Inheritance = MulticastInheritance.Strict, PersistMetaData = true)]
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public sealed class RecordingScopeAttribute : MulticastAttributeConstructors
| Name | Description |
|---|---|
| RecordingScopeAttribute(RecordingScopeOption) | Initializes a new instance of the RecordingScopeAttribute. |
| RecordingScopeAttribute(string, RecordingScopeOption) | Initializes a new instance of the RecordingScopeAttribute class and specify the scope name. |
Properties
| Name | Description |
|---|---|
| Name | Gets the scope name. |
| Option | Gets the scope option. |