PostSharp 6.5 / / 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, String)

AdviceDependencyAttribute Constructor (AspectDependencyAction, String)

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

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

Parameters

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