Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParseChildrenAttribute Constructor (Boolean, String^)

 

Initializes a new instance of the ParseChildrenAttribute class using the childrenAsProperties and defaultProperty parameters.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
ParseChildrenAttribute(
	bool childrenAsProperties,
	String^ defaultProperty
)

Parameters

childrenAsProperties
Type: System::Boolean

true to parse the elements as properties of the server control; otherwise, false.

defaultProperty
Type: System::String^

A string that defines a collection property of the server control into which nested content is parsed by default.

If childrenAsProperties is false, the elements are parsed as controls.

The code example in this section contains two parts. The first code example demonstrates how to set properties for the ParseChildrenAttribute class. The second code example demonstrates how to use classes in an ASP.NET page.

The following code example demonstrates how to set the ParseChildrenAttribute object of a custom server control named CollectionPropertyControl. The ParseChildrenAttribute sets the ChildrenAsProperties property to true and the DefaultProperty property to the Employee class.

No code example is currently available or this language may not be supported.

The following code example demonstrates how to use the CollectionPropertyControl and Employee classes in an ASP.NET page.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft