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.​DescriptionAttribute
Assembly: System.ComponentModel.Primitives
Inheritance: object → Attribute → DescriptionAttribute
Specifies a description for a property or event.
Fields and Constants
public static readonly
DescriptionAttribute
Default
Specifies the default value for the <see cref="T:System.ComponentModel.DescriptionAttribute" /> , which is an empty string (""). This <see langword="static" /> field is read-only.
Properties
public
string
Description
Gets the description stored in this attribute.
protected
string
DescriptionValue
Gets or sets the string stored as the description.
public
object
TypeId
Methods
public
bool
Equals​(object obj)
Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.DescriptionAttribute" /> .
Returns <see langword="true" /> if the value of the given object is equal to that of the current; otherwise, <see langword="false" /> .
obj
The object to test the value equality of.
public
int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer hash code.
public
bool
IsDefaultAttribute​()
Returns a value indicating whether this is the default <see cref="T:System.ComponentModel.DescriptionAttribute" /> instance.
Returns <see langword="true" /> , if this is the default <see cref="T:System.ComponentModel.DescriptionAttribute" /> instance; otherwise, <see langword="false" /> .
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object