This documentation is archived and is not being maintained.

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.


[Visual Basic]
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field _
   Or AttributeTargets.Event)>
NotInheritable Public Class InheritanceAttribute
   Inherits Attribute
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field
   | AttributeTargets.Event)]
public sealed class InheritanceAttribute : Attribute
[AttributeUsage(AttributeTargets::Property |
   AttributeTargets::Field | AttributeTargets::Event)]
public __gc __sealed class InheritanceAttribute : public Attribute
   AttributeUsage(AttributeTargets.Property | AttributeTargets.Field |
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.


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.


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