PostSharp5.0/API Reference/Post­Sharp.​Aspects Namespace/Location­Level­Aspect Class/Location­Level­Aspect Methods/Location­Level­Aspect.​Set­Aspect­Configuration Method/Location­Level­Aspect.​Set­Aspect­Configuration Method (Aspect­Configuration, Location­Info)

LocationLevelAspect.SetAspectConfiguration Method (AspectConfiguration, LocationInfo)

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.55.0 (5.0.55.0)
Syntax
C#
protected virtual void SetAspectConfiguration(
	AspectConfiguration aspectConfiguration,
	LocationInfo targetLocation
)

Parameters

aspectConfiguration
Type: PostSharp.Aspects.Configuration.AspectConfiguration
The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method.
targetLocation
Type: PostSharp.Reflection.LocationInfo
Location 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