Open sandboxFocus

Method ProvideAdvices

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.