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: 2023.0.3.0 (2023.0.3.0)
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.