Name

PersistChildrenAttribute

Synopsis

This attribute indicates how the child controls of an ASP.NET Server Control should be persisted at design time. If set to True, the child controls are persisted as nested inner server control tags. If False, the properties of the control may be persisted as inner tags.

Public NotInheritable Class PersistChildrenAttribute : Inherits Attribute
' Public Constructors
   Public Sub New(ByVal persist As Boolean) 
' Public Shared Fields
   public Shared ReadOnly Default As PersistChildrenAttribute    // =System.Web.UI.PersistChildrenAttribute
   public Shared ReadOnly No As PersistChildrenAttribute         // =System.Web.UI.PersistChildrenAttribute
   public Shared ReadOnly Yes As PersistChildrenAttribute        // =System.Web.UI.PersistChildrenAttribute
                  ' Public Instance Properties
   Public ReadOnly Property Persist As Boolean  
' Public Instance Methods
   Overrides Public Function Equals(
        ByVal obj As Object) As Boolean  
   Overrides Public Function GetHashCode() As Integer  
   Overrides Public Function IsDefaultAttribute() As Boolean  
End Class

Hierarchy

System.ObjectSystem.Attribute PersistChildrenAttribute

Valid On

Class

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.