Partager via


Propriété LocalizablePropertyDescriptionAttribute.Description

Gets the description associated with the property.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Localization
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public Overrides ReadOnly Property Description As String 
    Get
'Utilisation
Dim instance As LocalizablePropertyDescriptionAttribute 
Dim value As String 

value = instance.Description
public override string Description { get; }
public:
virtual property String^ Description {
    String^ get () override;
}
abstract Description : string 
override Description : string
override function get Description () : String

Valeur de propriété

Type : System.String
A String that contains the description of the property.

Exemples

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.
            }
        }

}

Voir aussi

Référence

LocalizablePropertyDescriptionAttribute Classe

Espace de noms Microsoft.SqlServer.Dts.Runtime.Localization