LocalizablePropertyDescriptionAttribute 构造函数

Initializes a new instance of the LocalizablePropertyDescriptionAttribute class using the specified type and property name.

命名空间:  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
    The type name, where Type is defined by the Type Class in the .NET Framework Class Library. This type contains the property referred to by propertyName.
  • propertyName
    类型:System.String
    The name of property on the type which returns localized property description.

注释

The property must be static, and return a String.

示例

The following code example shows a class that implements this attribute.

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

请参阅

参考

LocalizablePropertyDescriptionAttribute 类

Microsoft.SqlServer.Dts.Runtime.Localization 命名空间