PostSharp.ILAPI ReferencePost­Sharp.​Aspects.​AdvicesIntroduce­Interface­Attribute
Open sandboxFocus

IntroduceInterfaceAttribute Class

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
[RequiresDebuggerEnhancement]
public sealed class IntroduceInterfaceAttribute : Advice

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.