Open sandboxFocus

Class IntroduceInterfaceAttribute

Custom attribute that, when applied to an aspect class, specifies that the aspect should introduce a given interface into the type to which the aspect is applied.

Inheritance
IntroduceInterfaceAttribute
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class IntroduceInterfaceAttribute : Advice
Remarks

The introduced interface will be implemented explicitly by the type to which the aspect is applied.

Constructors

Name Description
IntroduceInterfaceAttribute(Type)

Initializes a new IntroduceInterfaceAttribute.

Properties

Name Description
AncestorOverrideAction

Specifies the action (Fail or Ignore) to be overtaken when an ancestor of the interface specified in the constructor of this custom attribute is already implemented by the type to which the current aspect is applied.

OverrideAction

Specifies the action (Fail or Ignore) to be overtaken when the interface specified in the constructor of this custom attribute is already implemented by the type to which the current aspect is applied.

See Also