System.Web.UI.Design.ControlPersister.PersistControl Method

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

Syntax

public static void PersistControl (System.IO.TextWriter sw, System.Web.UI.Control control, System.ComponentModel.Design.IDesignerHost host)

Parameters

sw
The System.IO.TextWriter to output the persisted control data to.
control
The System.Web.UI.Control to persist.
host
An System.ComponentModel.Design.IDesignerHost that is the designer host for the control.

Remarks

This method requires an System.ComponentModel.Design.IDesignerHost implementation to work correctly.

Requirements

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