PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / IAdvice­Provider Interface / IAdvice­Provider Methods / IAdvice­Provider.​Provide­Advices Method

IAdviceProvider.ProvideAdvices Method

Provides an enumeration of advices, represented as instances of the AdviceInstance class, for the current aspect instance.

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
IEnumerable<AdviceInstance> ProvideAdvices(
	Object targetElement
)

Parameters

targetElement
Type: System.Object
Element of code to which the current aspect has been applied.

Return Value

Type: IEnumerable<AdviceInstance>
A collection of advices to be added to the current aspect instance.
See Also