ContentPropertyAttribute 建構函式

定義

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

多載

ContentPropertyAttribute()

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

ContentPropertyAttribute(String)

使用指定的名稱,初始化 ContentPropertyAttribute 類別的新執行個體。

ContentPropertyAttribute()

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

public:
 ContentPropertyAttribute();
public ContentPropertyAttribute ();
Public Sub New ()

備註

Inherited=true由於屬性的宣告,ContentPropertyAttribute一般會將內容屬性指定套用至所有衍生類別的值。 使用此簽章或套用空 ContentPropertyAttribute的 ,可讓衍生類別依基類移除內容屬性的宣告 (,並請注意類別沒有內容屬性) 。

適用於

ContentPropertyAttribute(String)

使用指定的名稱,初始化 ContentPropertyAttribute 類別的新執行個體。

public:
 ContentPropertyAttribute(System::String ^ name);
public ContentPropertyAttribute (string name);
new System.Windows.Markup.ContentPropertyAttribute : string -> System.Windows.Markup.ContentPropertyAttribute
Public Sub New (name As String)

參數

name
String

表示內容屬性之屬性的屬性名稱。

備註

假設 CLR 備份,提供的 name 應該符合 MemberInfo.Name CLR 類型系統中相關屬性的 。

適用於