PostSharpAPI ReferencePost­Sharp.​AspectsIAspect­Build­SemanticsGet­Aspect­Configuration
Open sandboxFocus

IAspectBuildSemantics.GetAspectConfiguration Method

GetAspectConfiguration(Object)

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

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

Code element (Assembly, Type, FieldInfo, System.Reflection.MethodBase, PropertyInfo, System.Reflection.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.