PostSharp6.2/API Reference/Post­Sharp.​Aspects.​Dependencies Namespace/Provide­Aspect­Role­Attribute Class

ProvideAspectRoleAttribute Class

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/
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.Dependencies.AspectDependencyAttribute
      PostSharp.Aspects.Dependencies.ProvideAspectRoleAttribute

Namespace:  PostSharp.Aspects.Dependencies
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public sealed class ProvideAspectRoleAttribute : AspectDependencyAttribute

The ProvideAspectRoleAttribute type exposes the following members.

Constructors
  NameDescription
Public methodProvideAspectRoleAttribute
Initializes a new ProvideAspectRoleAttribute.
Properties
  NameDescription
Public propertyAction
Gets the dependency action, i.e. the kind of relationship specified by the dependency (Order, Require, Conflict, or Commute).
(Inherited from AspectDependencyAttribute.)
Public propertyIsWarning
If true, specifies that the constraint (of type Require or Conflict) should emit a warning instead of an error if not respected.
(Inherited from AspectDependencyAttribute.)
Public propertyPosition
Gets the position of the current dependency, i.e. actually the position of the other aspect or advices with respect to the one related to this dependency.
(Inherited from AspectDependencyAttribute.)
Public propertyRole
Gets the role into which the aspect or advice to which this custom attribute is applied will be enrolled.
Public propertyTarget
Determines the target (Default or Type) to which the aspect dependency apply.
(Inherited from AspectDependencyAttribute.)
Public propertyTargetType
Aspect type to which this dependency applies. This property is required when the custom attribute is applied at assembly level. It is ignored when applied on class or method level.
(Inherited from AspectDependencyAttribute.)
Remarks
See Also