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

AspectConfigurationAttribute.CreateAspectConfiguration Method

Creates a concrete AspectConfiguration instance specifically for the current AspectConfigurationAttribute type.

Namespace:  PostSharp.Aspects.Configuration
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
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 AspectConfigurationAttribute.
This method should not set up the returned AspectConfiguration. After the current method has returned, the SetAspectConfiguration(AspectConfiguration) method will be invoked, and this method is responsible for setting up the AspectConfigurationobject.
See Also