- component
- The System.ComponentModel.IComponent for which to retrieve the inheritance attribute.
An instance of System.ComponentModel.InheritanceAttribute that describes the level of inheritance of the specified component.
If the component has been profiled by the IInheritanceService.AddInheritedComponents(System.ComponentModel.IComponent, System.ComponentModel.IContainer) method, this method returns the value System.ComponentModel.InheritanceAttribute.NotInherited. Otherwise, it returns the inheritance attribute for this component.
You should call IInheritanceService.AddInheritedComponents(System.ComponentModel.IComponent, System.ComponentModel.IContainer) on the specified component or a parent of the specified component before attempting to obtain an System.ComponentModel.InheritanceAttribute that reflects the inheritance level of the specified component.