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)]
public sealed class RecordingScopeAttribute : MulticastAttribute
Constructors
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. |