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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기