言語

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 は CLR 型システムの関連プロパティの MemberInfo.Name と一致する必要があります。

適用対象