Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Aspect Class / Aspect Methods / Aspect.​Create­Aspect­Configuration Method

Aspect.CreateAspectConfiguration Method

Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
protected virtual AspectConfiguration CreateAspectConfiguration()

Return Value

Type: AspectConfiguration
A new and empty instance of AspectConfiguration, whose concrete type corresponds to the concrete type of the Aspect.
Remarks
This method should not set up the returned AspectConfiguration. After the current method has returned, the SetAspectConfiguration(AspectConfiguration, Object) method will be invoked, and this method is responsible for setting up the AspectConfigurationobject.
See Also