Open sandboxFocus

Class IntroduceInterfaceAdviceInstance

Represents an advise that introduces an interface into the target class. The interface must be implemented by the aspect class.

Inheritance
IntroduceInterfaceAdviceInstance
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
public sealed class IntroduceInterfaceAdviceInstance : AdviceInstance

Constructors

Name Description
IntroduceInterfaceAdviceInstance(Type, InterfaceOverrideAction, InterfaceOverrideAction)

Initializes a new instance of the IntroduceInterfaceAdviceInstance class.

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.

InterfaceType

Gets the interface to be introduced into the target class.

MasterAspectMember
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