PostSharp5.0/API Reference/Post­Sharp.​Aspects.​Dependencies Namespace/Aspect­Type­Dependency­Attribute Class

AspectTypeDependencyAttribute Class

Specifies an aspect dependency matching aspects of a specified type, and all its advices.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.Dependencies.AspectDependencyAttribute
      PostSharp.Aspects.Dependencies.AspectTypeDependencyAttribute

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

The AspectTypeDependencyAttribute type exposes the following members.

Constructors
  NameDescription
Public methodAspectTypeDependencyAttribute(AspectDependencyAction, Type)
Initializes a new AspectTypeDependencyAttribute without specifying the position, implicitly set to Any.
Public methodAspectTypeDependencyAttribute(AspectDependencyAction, AspectDependencyPosition, Type)
Initializes a new AspectTypeDependencyAttribute and specifies a position.
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 propertyAspectType
Gets the type from which the aspects should be derived in order to match the current dependency.
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 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.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also