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.​DisplayNameAttribute

Assembly: System.ComponentModel.Primitives

Inheritance: object → Attribute → DisplayNameAttribute

Specifies the display name for a property, event, or public void method that takes no arguments.

Fields and Constants

public static readonly DisplayNameAttribute
Default
Specifies the default value for the <see cref="T:System.ComponentModel.DisplayNameAttribute" /> . This field is read-only.

Properties

public string
DisplayName
Gets the display name for a property, event, or public void method that takes no arguments stored in this attribute.
protected string
DisplayNameValue
Gets or sets the display name.
public object
TypeId

Methods

public bool
Equals​(object obj)
Determines whether two <see cref="T:System.ComponentModel.DisplayNameAttribute" /> instances are equal.
Returns <see langword="true" /> if the value of the given object is equal to that of the current object; otherwise, <see langword="false" /> .
obj The <see cref="T:System.ComponentModel.DisplayNameAttribute" /> to test the value equality of.
public int
GetHashCode​()
Returns the hash code for this instance.
Returns A hash code for the current <see cref="T:System.ComponentModel.DisplayNameAttribute" /> .
public bool
IsDefaultAttribute​()
Determines if this attribute is the default.
Returns <see langword="true" /> if the attribute is the default value for this attribute class; otherwise, <see langword="false" /> .
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
public string
ToString​()
Inherited from object