PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Dependencies Namespace / Advice­Dependency­Attribute Class / Advice­Dependency­Attribute Constructor / Advice­Dependency­Attribute Constructor (Aspect­Dependency­Action, Aspect­Dependency­Position, String)

AdviceDependencyAttribute Constructor (AspectDependencyAction, AspectDependencyPosition, String)

Initializes a new AdviceDependencyAttribute and specifies a position.

Namespace:  PostSharp.Aspects.Dependencies
Assembly:  PostSharp (in PostSharp.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public AdviceDependencyAttribute(
	AspectDependencyAction action,
	AspectDependencyPosition position,
	string adviceMethodName
)

Parameters

action
Type: PostSharp.Aspects.Dependencies.AspectDependencyAction
Dependency action.
position
Type: PostSharp.Aspects.Dependencies.AspectDependencyPosition
Dependency position.
adviceMethodName
Type: System.String
Name of the advice method.
See Also