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

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

Syntax

public static string PersistControl (System.Web.UI.Control control, System.ComponentModel.Design.IDesignerHost host)

Parameters

control
The System.Web.UI.Control to persist.
host
An System.ComponentModel.Design.IDesignerHost that is the designer host for the control.

Returns

A string that represents the persisted form of 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