Page.AddContentTemplate(String, ITemplate) Metod

Definition

Anropas under sidinitiering för att skapa en samling innehåll (från innehållskontroller) som överlämnas till en huvudsida, om den aktuella sidan eller huvudsidan refererar till en huvudsida.

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)

Parametrar

templateName
String

Namnet på innehållsmallen som ska läggas till.

template
ITemplate

Innehållsmallen.

Undantag

Det finns redan en innehållsmall med samma namn.

Gäller för

Se även