PostSharpAPI ReferencePost­Sharp.​AspectsAspectSet­Aspect­Configuration
Open sandboxFocus

Aspect.SetAspectConfiguration Method

SetAspectConfiguration(AspectConfiguration, Object)

Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.

protected virtual void SetAspectConfiguration(AspectConfiguration aspectConfiguration, object targetElement)
Type Name Description
AspectConfiguration aspectConfiguration

The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method.

Object targetElement

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


Classes overriding this method must always invoke the base implementation before performing their own changes to the AspectConfiguration.

See Also