LocalizablePropertyDescriptionAttribute コンストラクター

指定した型とプロパティ名を使用して、LocalizablePropertyDescriptionAttribute クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    type As Type, _
    propertyName As String _
)
'使用
Dim type As Type
Dim propertyName As String

Dim instance As New LocalizablePropertyDescriptionAttribute(type, propertyName)
public LocalizablePropertyDescriptionAttribute(
    Type type,
    string propertyName
)
public:
LocalizablePropertyDescriptionAttribute(
    Type^ type, 
    String^ propertyName
)
new : 
        type:Type * 
        propertyName:string -> LocalizablePropertyDescriptionAttribute
public function LocalizablePropertyDescriptionAttribute(
    type : Type, 
    propertyName : String
)

パラメーター

  • type
    型: System. . :: . .Type
    型の名前です。Type は、.NET Framework クラス ライブラリの Type クラスで定義されています。この型には、propertyName で参照されるプロパティが含まれます。
  • propertyName
    型: System. . :: . .String
    ローカライズされたプロパティの説明を返す、type のプロパティの名前です。

説明

プロパティは、静的であり、String を返す必要があります。

使用例

次のコード例は、この属性を実装するクラスを示します。

[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
     // Your code here.
}