This topic has not yet been rated - Rate this topic

DescriptionAttribute Class

May 02, 2013

Specifies a description for a property or event.

System.Object
  System.Attribute
    System.ComponentModel.DescriptionAttribute

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
[AttributeUsageAttribute(AttributeTargets.All)]
public class DescriptionAttribute : Attribute

The DescriptionAttribute type exposes the following members.

  NameDescription
Public methodDescriptionAttribute()Initializes a new instance of the DescriptionAttribute class with no parameters.
Public methodDescriptionAttribute(String)Initializes a new instance of the DescriptionAttribute class with a description.
Top
  NameDescription
Public propertyDescriptionGets the description stored in this attribute.
Protected propertyDescriptionValueGets or sets the string stored as the description.
Top
  NameDescription
Public methodEqualsReturns whether the value of the specified object is equal to the current DescriptionAttribute. (Overrides Attribute.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Overrides Attribute.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public fieldStatic memberDefaultSpecifies the default value for the DescriptionAttribute, which is an empty string (""). This static field is read-only.
Top

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.