ControlPersister::PersistTemplate Method (ITemplate^, IDesignerHost^)

 

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

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

public:
static String^ PersistTemplate(
	ITemplate^ template,
	IDesignerHost^ host
)

Parameters

template
Type: System.Web.UI::ITemplate^

The template to persist.

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

An IDesignerHost that is the designer host for the control.

Return Value

Type: System::String^

A string that represents the persisted form of the template.

The PersistTemplate method requires an IDesignerHost interface implementation in order to work correctly.

.NET Framework
Available since 2.0
Return to top
Show: