LocalizablePropertyDescriptionAttribute(Type, String) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la LocalizablePropertyDescriptionAttribute classe en utilisant le type et le nom de propriété spécifiés.
public:
LocalizablePropertyDescriptionAttribute(Type ^ type, System::String ^ propertyName);
public LocalizablePropertyDescriptionAttribute(Type type, string propertyName);
new Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute : Type * string -> Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute
Public Sub New (type As Type, propertyName As String)
Paramètres
- type
- Type
Le nom du type, où Type est défini par la classe Type dans la bibliothèque de classes du cadre .NET. Ce type contient la propriété référée par propertyName.
- propertyName
- String
Le nom de la propriété sur le type qui retourne une description localisée de la propriété.
Exemples
L’exemple de code suivant montre une classe qui implémente cet attribut.
[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
// Your code here.
}
Remarques
La propriété doit être statique, et retourner un String.