Compartilhar via


Construtor DtsLocalizableAttribute

Initializes a new instance of the DtsLocalizableAttribute class.

Namespace:  Microsoft.SqlServer.Dts.Pipeline.Localization
Assembly:  Microsoft.SqlServer.PipelineHost (em Microsoft.SqlServer.PipelineHost.dll)

Sintaxe

'Declaração
Protected Sub New ( _
    localizedDisplayNameProperty As String, _
    localizedDescriptionProperty As String _
)
'Uso
Dim localizedDisplayNameProperty As String 
Dim localizedDescriptionProperty As String 

Dim instance As New DtsLocalizableAttribute(localizedDisplayNameProperty, _
    localizedDescriptionProperty)
protected DtsLocalizableAttribute(
    string localizedDisplayNameProperty,
    string localizedDescriptionProperty
)
protected:
DtsLocalizableAttribute(
    String^ localizedDisplayNameProperty, 
    String^ localizedDescriptionProperty
)
new : 
        localizedDisplayNameProperty:string * 
        localizedDescriptionProperty:string -> DtsLocalizableAttribute
protected function DtsLocalizableAttribute(
    localizedDisplayNameProperty : String, 
    localizedDescriptionProperty : String
)

Parâmetros

  • localizedDisplayNameProperty
    Tipo: System.String
    The name of the property used to look up the DisplayName property in the resource class.
  • localizedDescriptionProperty
    Tipo: System.String
    The name of the property used to look up the Description property in the resource class.

Comentários

When using the DtsPipelineComponentAttribute, the values of the localizedDisplayNameProperty and localizedDescriptionProperty are always ComponentDisplayName and ComponentDescription. Therefore, the keys in the resource file should be named the same. The DtsLocalizableAttribute class uses the System.Reflection.Type.GetProperty method to retrieve these properties, and then calls the GetValue method to populate them.

Consulte também

Referência

DtsLocalizableAttribute Classe

Namespace Microsoft.SqlServer.Dts.Pipeline.Localization