PostSharp6.3/API Reference/Post­Sharp.​Aspects.​Configuration Namespace/Composition­Aspect­Configuration­Attribute Class

CompositionAspectConfigurationAttribute Class

Custom attribute that, when applied on a class implementing ICompositionAspect, defines the declarative configuration of that aspect.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.Configuration.AspectConfigurationAttribute
      PostSharp.Aspects.Configuration.CompositionAspectConfigurationAttribute

Namespace:  PostSharp.Aspects.Configuration
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public sealed class CompositionAspectConfigurationAttribute : AspectConfigurationAttribute

The CompositionAspectConfigurationAttribute type exposes the following members.

Constructors
  NameDescription
Public methodCompositionAspectConfigurationAttribute
Initializes a new instance of the CompositionAspectConfigurationAttribute class
Properties
  NameDescription
Public propertyAncestorOverrideAction
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.
Public propertyAspectPriority
Gets or sets the weaving priority of the aspect.
(Inherited from AspectConfigurationAttribute.)
Public propertyGenerateImplementationAccessor
Determines whether the interface [!:IComposed<T>] should be introduced into the type to which the aspect is applied for each interface specified by the PublicInterfaces property.
Public propertyNonSerializedImplementation
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.
Public propertyOverrideAction
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.
Public propertyProtectedInterfaces
Gets or sets the array of type names of interfaces to be introduced indirectly into the target type of the aspect. These interfaces will become accessible through the [!:IProtectedInterface<T>] interface.
Public propertyPublicInterfaces
Gets or sets the array of type names of interfaces that should be introduced publicly into the target type of the aspect.
Public propertySerializerType
Gets or sets the Type of the serializer that will be used to configure the current aspect.
(Inherited from AspectConfigurationAttribute.)
Methods
  NameDescription
Public methodGetAspectConfiguration
Gets the AspectConfiguration corresponding to the current custom attribute.
(Inherited from AspectConfigurationAttribute.)
See Also