Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​ComponentModel.​InheritanceAttribute

Assembly: System.ComponentModel.TypeConverter

Inheritance: object → Attribute → InheritanceAttribute

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

Fields and Constants

public static readonly InheritanceAttribute
Default
Specifies that the default value for <see cref="T:System.ComponentModel.InheritanceAttribute" /> is <see cref="F:System.ComponentModel.InheritanceAttribute.NotInherited" /> . This field is read-only.
public static readonly InheritanceAttribute
Inherited
Specifies that the component is inherited. This field is read-only.
public static readonly InheritanceAttribute
InheritedReadOnly
Specifies that the component is inherited and is read-only. This field is read-only.
public static readonly InheritanceAttribute
NotInherited
Specifies that the component is not inherited. This field is read-only.

Properties

InheritanceLevel
Gets or sets the current inheritance level stored in this attribute.
public object
TypeId

Methods

public bool
Equals​(object value)
Override to test for equality.
Returns <see langword="true" /> if the object is the same; otherwise, <see langword="false" /> .
value The object to test.
public int
GetHashCode​()
Returns the hashcode for this object.
Returns A hash code for the current <see cref="T:System.ComponentModel.InheritanceAttribute" /> .
public bool
IsDefaultAttribute​()
Gets a value indicating whether the current value of the attribute is the default value for the attribute.
Returns <see langword="true" /> if the current value of the attribute is the default; otherwise, <see langword="false" /> .
public string
ToString​()
Converts this attribute to a string.
Returns A string that represents this <see cref="T:System.ComponentModel.InheritanceAttribute" /> .
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object