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

Aspect.GetAspectConfiguration Method

GetAspectConfiguration(Object)

Method invoked at build tome to get the imperative configuration of the current Aspect.

Declaration
public AspectConfiguration GetAspectConfiguration(object targetElement)
Parameters
Type Name Description
Object targetElement

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

Returns
Type Description
AspectConfiguration

An AspectConfiguration representing the imperative configuration of the current Aspect.

Implements
IAspectBuildSemantics.GetAspectConfiguration(Object)
Remarks

This method can be customized by overriding CreateAspectConfiguration() and/or SetAspectConfiguration(AspectConfiguration, Object)

.
See Also