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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈