TypeLevelAspect.SetAspectConfiguration Method (AspectConfiguration, Object) |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected override sealed void SetAspectConfiguration( AspectConfiguration aspectConfiguration, Object targetElement )
Parameters
- aspectConfiguration
- Type: PostSharp.Aspects.Configuration.AspectConfiguration
The AspectConfiguration instance previously returned by the CreateAspectConfiguration() method. - targetElement
- Type: System.Object
Code element (Assembly, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current Aspect has been applied.
Classes overriding this method must always invoke the base implementation before performing their own changes to the AspectConfiguration.