ControlParser.ParseTemplate Metodo

Definizione

Crea un'interfaccia ITemplate dal markup del modello specificato.

Overload

ParseTemplate(IDesignerHost, String)

Crea un'interfaccia ITemplate dal markup del modello specificato.

ParseTemplate(IDesignerHost, String, String)

Analizza il markup del modello specificato e crea un'interfaccia ITemplate.

ParseTemplate(IDesignerHost, String)

Crea un'interfaccia ITemplate dal markup del modello specificato.

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

Parametri

designerHost
IDesignerHost

Istanza di IDesignerHost che rappresenta l'host della finestra di progettazione per la pagina.

templateText
String

Stringa contenente il markup del modello.

Restituisce

ITemplate

Istanza ITemplate creata mediante l'analisi del parametro templateText.

Eccezioni

designerHost è null.

Commenti

Il ParseTemplate metodo accede alla stringa che rappresenta le direttive del registro nella pagina Web ASP.NET usando i servizi dell'host della finestra di progettazione. I servizi host della finestra di progettazione vengono acquisiti tramite la ReferenceManager proprietà dell'oggetto RootDesigner o, se non è disponibile, il IWebFormReferenceManager servizio.

Vedi anche

Si applica a

ParseTemplate(IDesignerHost, String, String)

Analizza il markup del modello specificato e crea un'interfaccia ITemplate.

public:
 static System::Web::UI::ITemplate ^ ParseTemplate(System::ComponentModel::Design::IDesignerHost ^ designerHost, System::String ^ templateText, System::String ^ directives);
public static System.Web.UI.ITemplate ParseTemplate (System.ComponentModel.Design.IDesignerHost designerHost, string templateText, string directives);
static member ParseTemplate : System.ComponentModel.Design.IDesignerHost * string * string -> System.Web.UI.ITemplate
Public Shared Function ParseTemplate (designerHost As IDesignerHost, templateText As String, directives As String) As ITemplate

Parametri

designerHost
IDesignerHost

Istanza di IDesignerHost che rappresenta l'host della finestra di progettazione per la pagina.

templateText
String

Stringa contenente il markup del modello.

directives
String

Qualsiasi direttiva da aggiungere all'inizio del codice del modello.

Restituisce

ITemplate

Istanza ITemplate creata mediante l'analisi del parametro templateText.

Eccezioni

designerHost è null.

Commenti

Il ParseTemplate metodo accede alla stringa che rappresenta le direttive del registro nella pagina Web ASP.NET usando i servizi dell'host della finestra di progettazione. I servizi host della finestra di progettazione vengono acquisiti tramite la ReferenceManager proprietà dell'oggetto RootDesigner o, se non è disponibile, il IWebFormReferenceManager servizio.

Vedi anche

Si applica a