Custom attribute that, when applied to a class implementing ICompositionAspect, defines the declarative configuration of that aspect.
Namespace: PostSharp.Aspects.Configuration
Assembly: PostSharp.dll
Syntax
public sealed class CompositionAspectConfigurationAttribute : AspectConfigurationAttributeConstructors
| Name | Description |
|---|---|
| CompositionAspectConfigurationAttribute() |
Properties
| Name | Description |
|---|---|
| AncestorOverrideAction | Gets or sets the action (Fail or Ignore) to take when an ancestor of one of the interfaces specified by PublicInterfaces is already implemented by the type to which the current aspect is applied. |
| GenerateImplementationAccessor | This property has no effect. |
| NonSerializedImplementation | Gets or sets a value indicating whether the field containing the interface implementation (and storing the object returned by CreateImplementationObject(AdviceArgs)) should be excluded from serialization by BinaryFormatter. The same effect is typically obtained by applying the NonSerializedAttribute custom attribute to the field. |
| OverrideAction | Gets or sets the action (Fail or Ignore) to take when one of the interfaces specified by PublicInterfaces or ProtectedInterfaces is already implemented by the type to which the aspect is applied. |
| ProtectedInterfaces | Gets or sets the array of type names of interfaces to be introduced indirectly into the target type of the aspect. |
| PublicInterfaces | Gets or sets the array of type names of interfaces that should be introduced publicly into the target type of the aspect. |
Methods
| Name | Description |
|---|---|
| CreateAspectConfiguration() | Creates a concrete AspectConfiguration instance specifically for the current AspectConfigurationAttribute type. |