PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Dynamic­Advising Namespace/IDynamically­Advisable Interface/IDynamically­Advisable Methods/IDynamically­Advisable.​Query­Advice(T) Method

IDynamicallyAdvisable.QueryAdvice<T> Method

Queries an interface implemented by a dynamic advice.

Namespace:  PostSharp.Patterns.DynamicAdvising
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
T QueryAdvice<T>()
where T : class

Type Parameters

T
The interface type.

Return Value

Type: T
The interface implementation, or null if the object does not have an advice implementing T.
See Also