ProvidePropertyAttribute 建構函式

定義

初始化 ProvidePropertyAttribute 類別的新執行個體。

多載

名稱 Description
ProvidePropertyAttribute(String, String)

初始化該類別的新實例 ProvidePropertyAttribute ,並使用屬性名稱及其接收者的型別。

ProvidePropertyAttribute(String, Type)

初始化該類別的新實例 ProvidePropertyAttribute ,使用屬性名稱及其 Type

ProvidePropertyAttribute(String, String)

初始化該類別的新實例 ProvidePropertyAttribute ,並使用屬性名稱及其接收者的型別。

public:
 ProvidePropertyAttribute(System::String ^ propertyName, System::String ^ receiverTypeName);
public ProvidePropertyAttribute(string propertyName, string receiverTypeName);
new System.ComponentModel.ProvidePropertyAttribute : string * string -> System.ComponentModel.ProvidePropertyAttribute
Public Sub New (propertyName As String, receiverTypeName As String)

參數

propertyName
String

屬性名稱延伸至指定類型的物件。

receiverTypeName
String

此屬性可擴展的資料型別名稱。

適用於

ProvidePropertyAttribute(String, Type)

初始化該類別的新實例 ProvidePropertyAttribute ,使用屬性名稱及其 Type

public:
 ProvidePropertyAttribute(System::String ^ propertyName, Type ^ receiverType);
public ProvidePropertyAttribute(string propertyName, Type receiverType);
new System.ComponentModel.ProvidePropertyAttribute : string * Type -> System.ComponentModel.ProvidePropertyAttribute
Public Sub New (propertyName As String, receiverType As Type)

參數

propertyName
String

屬性名稱延伸至指定類型的物件。

receiverType
Type

Type 能接收該屬性的物件資料型態。

適用於