Custom attribute that, when applied on a class implementing ICompositionAspect, defines the declarative configuration of that aspect.
Namespace: PostSharp.Aspects.Configuration
Assembly: PostSharp.dll
Syntax
public sealed class CompositionAspectConfigurationAttribute : AspectConfigurationAttribute
Constructors
Name | Description |
---|---|
CompositionAspectConfigurationAttribute() |
Properties
Name | Description |
---|---|
AncestorOverrideAction | Specifies the action (Fail or Ignore) to be overtaken 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 | Determines 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 | Specifies the action (Fail or Ignore) to be overtaken 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. |