DtsLocalizableAttribute(String, 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 classe DtsLocalizableAttribute.
protected:
DtsLocalizableAttribute(System::String ^ localizedDisplayNameProperty, System::String ^ localizedDescriptionProperty);
protected DtsLocalizableAttribute(string localizedDisplayNameProperty, string localizedDescriptionProperty);
new Microsoft.SqlServer.Dts.Pipeline.Localization.DtsLocalizableAttribute : string * string -> Microsoft.SqlServer.Dts.Pipeline.Localization.DtsLocalizableAttribute
Protected Sub New (localizedDisplayNameProperty As String, localizedDescriptionProperty As String)
Paramètres
- localizedDisplayNameProperty
- String
Le nom de la propriété utilisée pour rechercher la DisplayName propriété dans la classe de ressources.
- localizedDescriptionProperty
- String
Le nom de la propriété utilisée pour rechercher la Description propriété dans la classe de ressources.
Remarques
En utilisant le DtsPipelineComponentAttribute, les valeurs des localizedDisplayNameProperty et localizedDescriptionProperty sont toujours ComponentDisplayName et ComponentDescription. Par conséquent, les clés dans le fichier de ressource doivent porter le même nom. La DtsLocalizableAttribute classe utilise la System.Reflection.Type.GetProperty méthode pour récupérer ces propriétés, puis appelle la GetValue méthode pour les peupler.