Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Introduce­Member­Attribute Class

IntroduceMemberAttribute Class

Custom attribute that, when applied on a method, event or property of an aspect class, specifies that this method, event or property should be introduced into the types to which the aspect is applied.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.Advices.Advice
      PostSharp.Aspects.Advices.IntroduceMemberAttribute

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public sealed class IntroduceMemberAttribute : Advice

The IntroduceMemberAttribute type exposes the following members.

Constructors
  NameDescription
Public methodIntroduceMemberAttribute
Initializes a new instance of the IntroduceMemberAttribute class
Properties
  NameDescription
Public propertyDescription
A human-readable description of the current advice.
(Inherited from Advice.)
Public propertyIsIsVirtualSpecified
Determines whether the IsVirtual property has been specified.
Public propertyIsVirtual
Determines whether the introduced member should be virtual.
Public propertyLinesOfCodeAvoided
Reduction in the code lines count achieved by applying the advice instance to one code element.
(Inherited from Advice.)
Public propertyOverrideAction
Determines the action to be overtaken when the member to be introduced already exists in the type to which the aspect is applied, or to a base type.
Public propertyVisibility
Determines the visibility (Public, (Family, ...) of the introduced member.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks

Methods, properties and events annotated with IntroduceMemberAttribute must be public.

See Also