PostSharp//API Reference/Post­Sharp.​Aspects.​Dependencies/Aspect­Role­Dependency­Attribute
Open sandboxFocus

Class AspectRoleDependencyAttribute

Specifies an aspect dependency matching aspects or advices that are a part of a given role.

Inheritance
AspectRoleDependencyAttribute
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
public sealed class AspectRoleDependencyAttribute : AspectDependencyAttribute

Constructors

Name Description
AspectRoleDependencyAttribute(AspectDependencyAction, AspectDependencyPosition, String)

Initializes a new AspectRoleDependencyAttribute and specifies a position.

AspectRoleDependencyAttribute(AspectDependencyAction, String)

Initializes a new AspectEffectDependencyAttribute without specifying the position, implicitly set to Any.

Properties

Name Description
Role

Gets the role that the aspects or advices must be a part of in order to match the current dependency.