语言

LocalizablePropertyDescriptionAttribute(Type, String) 构造函数

定义

使用指定的类型和属性名称初始化该 LocalizablePropertyDescriptionAttribute 类的新实例。

public:
 LocalizablePropertyDescriptionAttribute(Type ^ type, System::String ^ propertyName);
public LocalizablePropertyDescriptionAttribute(Type type, string propertyName);
new Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute : Type * string -> Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute
Public Sub New (type As Type, propertyName As String)

参数

type
Type

类型名称,其中类型由 .NET 框架类库中的类型类定义。 该类型包含由 propertyName所提及的性质。

propertyName
String

该物业 type 名称返回本地化的物业描述。

示例

以下代码示例展示了实现该属性的类。

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

注解

该属性必须是静态的,并且返回一个 String。

适用于