PostSharp 6.10 / / Post­Sharp Documentation / 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: (
T QueryAdvice<T>()
where T : class

Type Parameters

The interface type.

Return Value

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