ControlPersister.PersistTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應