Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Introduce­Interface­Advice­Instance Class

IntroduceInterfaceAdviceInstance Class

Represents an advise that introduces an interface into the target class. The interface must be implemented by the aspect class.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.Advices.AdviceInstance
    PostSharp.Aspects.Advices.IntroduceInterfaceAdviceInstance

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 5.1.3.0 (5.1.3.0)
Syntax
C#
public sealed class IntroduceInterfaceAdviceInstance : AdviceInstance

The IntroduceInterfaceAdviceInstance type exposes the following members.

Constructors
  NameDescription
Public methodIntroduceInterfaceAdviceInstance
Initializes a new instance of the IntroduceInterfaceAdviceInstance class.
Properties
  NameDescription
Public propertyAncestorOverrideAction
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.
Public propertyDescription
A human-readable description of the current advice instance.
(Inherited from AdviceInstance.)
Public propertyInterfaceType
Gets the interface to be introduced into the target class.
Public propertyLinesOfCodeAvoided
The number of lines of hand-written code avoided by this specific AdviceInstance.
(Inherited from AdviceInstance.)
Public propertyMasterAspectMember (Overrides AdviceInstance.MasterAspectMember.)
Public propertyOverrideAction
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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also