PersistChildrenAttribute Constructor (Boolean)
Initializes a new instance of the PersistChildrenAttribute class using a Boolean value indicating whether to persist nested content as nested controls.
Assembly: System.Web (in System.Web.dll)
Parameters
- persist
-
Type:
System::Boolean
true to persist the nested content as nested controls; otherwise, false.
The following code example demonstrates how to apply the PersistChildrenAttribute attribute for a custom server control named CollectionPropertyControl.
This code example is part of a larger example provided for the PersistChildrenAttribute class.
Available since 1.1
Control
PersistChildrenAttribute Overload
PersistChildrenAttribute Class
System.Web.UI Namespace
Custom Control Development