PostSharp.ILAPI ReferencePost­Sharp.​AspectsLocation­Level­AspectSet­Aspect­Configuration
Open sandboxFocus

LocationLevelAspect.SetAspectConfiguration Method

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

Declaration
protected virtual void SetAspectConfiguration(AspectConfiguration aspectConfiguration, LocationInfo targetLocation)
Parameters
Type Name Description
AspectConfiguration aspectConfiguration

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

LocationInfo targetLocation

Location to which the current aspect has been applied.

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.

Declaration
protected sealed override void SetAspectConfiguration(AspectConfiguration aspectConfiguration, object targetElement)
Parameters
Type Name Description
AspectConfiguration aspectConfiguration

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

Object targetElement

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

Overrides
Aspect.SetAspectConfiguration(AspectConfiguration, Object)