DescriptionAttribute.DescriptionValue Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the string stored as the description.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected string DescriptionValue { get; set; }

Property Value

Type: System.String

The string stored as the description. The default value is an empty string ("").

The default implementation of the Description property simply returns this value.

This extra property exists so that you can derive from DescriptionAttribute and provide a localized version. The derived localizable DescriptionAttribute will maintain a private Boolean field to indicate if it has been localized. On the first access to the Description property, it will look up the localized string and store it back in the DescriptionValue property.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: