PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesIAdvice­ProviderProvide­Advices
Open sandboxFocus

IAdviceProvider.ProvideAdvices Method

ProvideAdvices(Object)

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

Declaration
IEnumerable<AdviceInstance> ProvideAdvices(object targetElement)
Parameters
Type Name Description
Object targetElement

Element of code to which the current aspect has been applied.

Returns
Type Description
IEnumerable<AdviceInstance>

A collection of advices to be added to the current aspect instance.