Specifies that the aspect or aspect advice to which this custom attribute is applied is 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 : AspectDependencyAttributeConstructors
| Name | Description |
|---|---|
| ProvideAspectRoleAttribute(string) | Initializes a new instance of the ProvideAspectRoleAttribute class. |
Properties
| Name | Description |
|---|---|
| Role | Gets the role in which the aspect or advice to which this custom attribute is applied is enrolled. |