System.ComponentModel.InheritanceAttribute Class

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

See Also: InheritanceAttribute Members


[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Event | System.AttributeTargets.All)]
public sealed class InheritanceAttribute : Attribute


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

When the System.ComponentModel.Design.IInheritanceService.AddInheritedComponents(IComponent, IContainer) method of the System.ComponentModel.Design.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 System.ComponentModel.InheritanceAttribute.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,