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

类型名称,其中,Type 由 .NET Framework 类库中的 Type 类定义。 此类型包含由 propertyName 引用的属性。

propertyName
String

类型为 type 的、返回本地化的属性说明的属性的名称。

示例

下面的代码示例演示一个实现此属性的类。

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

注解

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

适用于