Rediger

Del via


ControlPersister.PersistTemplate Method

Definition

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

Overloads

PersistTemplate(ITemplate, IDesignerHost)

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

PersistTemplate(TextWriter, ITemplate, IDesignerHost)

Writes a string of data that represents the persisted form of the specified template to the specified TextWriter object.

PersistTemplate(ITemplate, IDesignerHost)

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

public:
 static System::String ^ PersistTemplate(System::Web::UI::ITemplate ^ template, System::ComponentModel::Design::IDesignerHost ^ host);
public static string PersistTemplate (System.Web.UI.ITemplate template, System.ComponentModel.Design.IDesignerHost host);
static member PersistTemplate : System.Web.UI.ITemplate * System.ComponentModel.Design.IDesignerHost -> string
Public Shared Function PersistTemplate (template As ITemplate, host As IDesignerHost) As String

Parameters

template
ITemplate

The template to persist.

host
IDesignerHost

An IDesignerHost that is the designer host for the control.

Returns

A string that represents the persisted form of the template.

Remarks

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

See also

Applies to

PersistTemplate(TextWriter, ITemplate, IDesignerHost)

Writes a string of data that represents the persisted form of the specified template to the specified TextWriter object.

public:
 static void PersistTemplate(System::IO::TextWriter ^ writer, System::Web::UI::ITemplate ^ template, System::ComponentModel::Design::IDesignerHost ^ host);
public static void PersistTemplate (System.IO.TextWriter writer, System.Web.UI.ITemplate template, System.ComponentModel.Design.IDesignerHost host);
static member PersistTemplate : System.IO.TextWriter * System.Web.UI.ITemplate * System.ComponentModel.Design.IDesignerHost -> unit
Public Shared Sub PersistTemplate (writer As TextWriter, template As ITemplate, host As IDesignerHost)

Parameters

writer
TextWriter

The TextWriter to write the persisted template data to.

template
ITemplate

The template to persist.

host
IDesignerHost

An IDesignerHost that is the designer host for the control.

Remarks

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

See also

Applies to