ContentPropertyAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ContentPropertyAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 應與CLR類型系統中相關屬性相符 MemberInfo.Name 。