System.Web.UI.PersistChildrenAttribute Class

Defines an attribute that is used by ASP.NET server controls to indicate at design time whether nested content that is contained within a server control corresponds to controls or to properties of the server control. This class cannot be inherited.

See Also: PersistChildrenAttribute Members


public sealed class PersistChildrenAttribute : Attribute


The System.Web.UI.PersistChildrenAttribute is used in combination with the System.Web.UI.ParseChildrenAttribute to determine how nested content of a control is interpreted. If System.Web.UI.PersistChildrenAttribute is true and System.Web.UI.ParseChildrenAttribute is false, the nested content contained within an ASP.NET server control is persisted as controls. If System.Web.UI.PersistChildrenAttribute is false and System.Web.UI.ParseChildrenAttribute is true, the nested content is persisted as properties of the server control. For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0,