Export (0) Print
Expand All

InheritanceAttribute Class

Indicates whether the component associated with this attribute has been inherited from a base class. This class cannot be inherited.

For a list of all members of this type, see InheritanceAttribute Members.

System.Object
   System.Attribute
      System.ComponentModel.InheritanceAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field _
   Or AttributeTargets.Event)>
NotInheritable Public Class InheritanceAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
   | AttributeTargets.Event)]
public sealed class InheritanceAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Property |
   AttributeTargets::Field | AttributeTargets::Event)]
public __gc __sealed class InheritanceAttribute : public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Property | AttributeTargets.Field |
   AttributeTargets.Event)
class InheritanceAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

InheritanceAttribute represents the type and level of inheritance of a member.

When the AddInheritedComponents method of the IInheritanceService searches the component fields of a component to identify fields that are inherited from a base class, the method represents the inheritance level of each component using an InheritanceAttribute.

Requirements

Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

InheritanceAttribute Members | System.ComponentModel Namespace | IInheritanceService | InheritanceLevel | Attribute

Show:
© 2014 Microsoft