Επεξεργασία

Κοινή χρήση μέσω


ContentPropertyAttribute Constructors

Definition

Initializes a new instance of the ContentPropertyAttribute class.

Overloads

ContentPropertyAttribute()

Initializes a new instance of the ContentPropertyAttribute class.

ContentPropertyAttribute(String)

Initializes a new instance of the ContentPropertyAttribute class, by using the specified name.

ContentPropertyAttribute()

Initializes a new instance of the ContentPropertyAttribute class.

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

Remarks

Because of the Inherited=true declaration of the attribute, a value for a ContentPropertyAttribute normally applies a content property designation to all derived classes as well. Using this signature, or applying an empty ContentPropertyAttribute, enables a derived class to remove a declaration of a content property attribute by a base class (and note that the class has no content property).

Applies to

ContentPropertyAttribute(String)

Initializes a new instance of the ContentPropertyAttribute class, by using the specified name.

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)

Parameters

name
String

The property name for the property that is the content property.

Remarks

Assuming CLR backing, the provided name should match the MemberInfo.Name of the relevant property in the CLR type system.

Applies to