ControlPersister Class

 

Provides methods for persisting Web server controls at design-time.

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

System.Object
  System.Web.UI.Design.ControlPersister

[<Sealed>]
[<SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
type ControlPersister = class end

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticPersistControl(Control)

Gets a string of data that represents the persisted form of the specified control.

System_CAPS_pubmethodSystem_CAPS_staticPersistControl(Control, IDesignerHost)

Gets a string of data that represents the persisted form of the specified control, using the specified designer host.

System_CAPS_pubmethodSystem_CAPS_staticPersistControl(TextWriter, Control)

Outputs a string of data that represents the persisted form of the specified control to the specified TextWriter.

System_CAPS_pubmethodSystem_CAPS_staticPersistControl(TextWriter, Control, IDesignerHost)

Outputs a string of data that represents the persisted form of the specified control to the specified TextWriter, using the specified designer host.

System_CAPS_pubmethodSystem_CAPS_staticPersistInnerProperties(Object, IDesignerHost)

Gets a string of data that can persist the inner properties of the specified control.

System_CAPS_pubmethodSystem_CAPS_staticPersistInnerProperties(TextWriter, Object, IDesignerHost)

Outputs a string of data that can persist the inner properties of the specified control to the specified TextWriter, using the specified designer host.

System_CAPS_pubmethodSystem_CAPS_staticPersistTemplate(ITemplate, IDesignerHost)

Gets a string of data that represents the persisted form of the specified template.

System_CAPS_pubmethodSystem_CAPS_staticPersistTemplate(TextWriter, ITemplate, IDesignerHost)

Writes a string of data that represents the persisted form of the specified template to the specified TextWriter object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The ControlPersister class provides methods that can persist a Control control or an ITemplate interface implementation as a string of aspx code. The implementation of these methods is driven by metadata attributes, such as the DefaultValueAttribute, PersistenceModeAttribute, and DesignerSerializationVisibilityAttribute.

System_CAPS_noteNote

The Web Forms page designer does not support the ResetPropertyName method that is optionally exposed by Microsoft Windows Forms-based controls for property persistence.

To create a Control object or an ITemplate interface by parsing a string of control- or template-persistence data, use the ControlParser class methods.

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

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: