Читати англійською Редагувати

Поділитися через


MasterPage.AddContentTemplate(String, ITemplate) Method

Definition

Adds a Content control to the ContentTemplates dictionary.

C#
protected internal void AddContentTemplate(string templateName, System.Web.UI.ITemplate template);

Parameters

templateName
String

A unique name for the Content.

template
ITemplate

The Content.

Exceptions

A Content control with the same name already exists in the ContentTemplates dictionary.

Remarks

Derived master page classes can add Content controls to the ContentTemplates dictionary using the AddContentTemplate method. Derived types do not typically override the AddContentTemplate method.

Applies to

Продукт Версії
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also