Open sandboxFocus

Constructor IntroduceInterfaceAdviceInstance

IntroduceInterfaceAdviceInstance(Type, InterfaceOverrideAction, InterfaceOverrideAction)

Initializes a new instance of the IntroduceInterfaceAdviceInstance class.

Declaration
public IntroduceInterfaceAdviceInstance(Type interfaceType, InterfaceOverrideAction overrideAction = InterfaceOverrideAction.Default, InterfaceOverrideAction ancestorOverrideAction = InterfaceOverrideAction.Default)
Parameters
Type Name Description
Type interfaceType

The interface to introduce into the target class. It must be implemented by the aspect class itself.

InterfaceOverrideAction overrideAction

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.

InterfaceOverrideAction ancestorOverrideAction

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.