次の方法で共有


DtsLocalizableAttribute コンストラクター

DtsLocalizableAttribute クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.SqlServer.Dts.Pipeline.Localization
アセンブリ:  Microsoft.SqlServer.PipelineHost (Microsoft.SqlServer.PipelineHost.dll)

構文

'宣言
Protected Sub New ( _
    localizedDisplayNameProperty As String, _
    localizedDescriptionProperty As String _
)
'使用
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
)

パラメーター

  • localizedDisplayNameProperty
    型: System.String
    リソース クラスの DisplayName プロパティを検索するために使用されるプロパティの名前です。
  • localizedDescriptionProperty
    型: System.String
    リソース クラスの Description プロパティを検索するために使用されるプロパティの名前です。

説明

DtsPipelineComponentAttribute を使用する場合、localizedDisplayNameProperty と localizedDescriptionProperty の値は常に ComponentDisplayName と ComponentDescription になります。 したがって、リソース ファイル内の各キーを同じ名前にする必要があります。 DtsLocalizableAttribute クラスでは、System.Reflection.Type.GetProperty メソッドを使用してこれらのプロパティを取得してから、GetValue メソッドを呼び出して値を設定します。

関連項目

参照

DtsLocalizableAttribute クラス

Microsoft.SqlServer.Dts.Pipeline.Localization 名前空間