ControlPersister::PersistControl Method (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.

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

public:
static void PersistControl(
	TextWriter^ sw,
	Control^ control,
	IDesignerHost^ host
)

Parameters

sw
Type: System.IO::TextWriter^

The TextWriter to output the persisted control data to.

control
Type: System.Web.UI::Control^

The Control to persist.

host
Type: System.ComponentModel.Design::IDesignerHost^

An IDesignerHost that is the designer host for the control.

This method requires an IDesignerHost implementation to work correctly.

.NET Framework
Available since 1.1
Return to top
Show: