Specifies that the aspect or aspect advice to which this custom attribute is applied is a part of a given role. This aspect or advice can then be matched by AspectRoleDependencyAttribute/
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public sealed class ProvideAspectRoleAttribute : AspectDependencyAttribute
Constructors
Name | Description |
---|---|
ProvideAspectRoleAttribute(string) | Initializes a new ProvideAspectRoleAttribute. |
Properties
Name | Description |
---|---|
Role | Gets the role into which the aspect or advice to which this custom attribute is applied will be enrolled. |