LocalizablePropertyDescriptionAttribute.Description Property

Definition

Gets the description associated with the property.

public:
 virtual property System::String ^ Description { System::String ^ get(); };
public override string Description { get; }
member this.Description : string
Public Overrides ReadOnly Property Description As String

Property Value

A String that contains the description of the property.

Examples

The following example shows a class that provides a property description.

public class MyTask : Task  
{  
[LocalizablePropertyDescription (typeof(LocalizedStrings),"MyPropertyDescription")]  
     public string MyProperty  
{ get; set; }  
}  
internal class LocalizedStrings  
    {  
        public static string MyPropertyDescription  
        {  
            get  
            {  
                // Return the localized string.  
            }  
        }  

}

Applies to