PostSharp//API Reference/Post­Sharp.​Aspects/IAspect­Provider/Provide­Aspects
Open sandboxFocus

Method ProvideAspects

ProvideAspects(Object)

Provides new aspects.

Declaration
IEnumerable<AspectInstance> ProvideAspects(object targetElement)
Parameters
Type Name Description
Object targetElement

Code element (Assembly, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current aspect has been applied.

Returns
Type Description
IEnumerable<AspectInstance>

A set of aspect instances.