Open sandboxFocus

Class IntroduceInterfaceAdviceInstance

Represents an advice 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

Gets the action (Fail or Ignore) to take 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 introduce into the target class.

MasterAspectMember

Gets the main field or method of the aspect class that the current AdviceInstance relates to.

OverrideAction

Gets the action (Fail or Ignore) to take 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