Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Method­Level­Aspect Class / Method­Level­Aspect Methods / Method­Level­Aspect.​Set­Aspect­Configuration Method / Method­Level­Aspect.​Set­Aspect­Configuration Method (Aspect­Configuration, Object)

MethodLevelAspect.SetAspectConfiguration Method (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.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
protected override sealed void SetAspectConfiguration(
	AspectConfiguration aspectConfiguration,
	Object targetElement
)

Parameters

aspectConfiguration
Type: PostSharp.Aspects.Configuration.AspectConfiguration
The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method.
targetElement
Type: System.Object
Code element (Assembly, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current Aspect has been applied.
Remarks

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

See Also