語言

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 類函式庫中的型別類別定義。 此類型包含 所 propertyName提及的性質。

propertyName
String

該物件 type 名稱會回傳局部的物件描述。

範例

以下程式碼範例展示了實作此屬性的類別。

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

備註

該性質必須是靜態的,並回傳一個 String。

適用於