ControlPersister::PersistControl Method (TextWriter^, Control^)

 

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

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

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

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.

This method requires an IDesignerHost implementation to work correctly. This method uses the Site of the specified control to retrieve the designer host.

.NET Framework
Available since 1.1
Return to top
Show: