MasterPage.AddContentTemplate(String, ITemplate) Metoda

Definicja

Dodaje kontrolkę Content do słownika ContentTemplates .

protected public:
 void AddContentTemplate(System::String ^ templateName, System::Web::UI::ITemplate ^ template);
protected internal void AddContentTemplate (string templateName, System.Web.UI.ITemplate template);
member this.AddContentTemplate : string * System.Web.UI.ITemplate -> unit
Protected Friend Sub AddContentTemplate (templateName As String, template As ITemplate)

Parametry

templateName
String

Unikatowa nazwa elementu Content.

template
ITemplate

Element Content.

Wyjątki

Kontrolka Content o tej samej nazwie już istnieje w słowniku ContentTemplates .

Uwagi

Pochodne klasy stron wzorcowych mogą dodawać Content kontrolki do słownika AddContentTemplateContentTemplates przy użyciu metody . Typy pochodne zwykle nie zastępują AddContentTemplate metody .

Dotyczy

Zobacz też