Page.AddContentTemplate(String, ITemplate) 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.
Called during page initialization to create a collection of content (from content controls) that is handed to a master page, if the current page or master page refers to a master page.
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)
Parameters
- templateName
- String
The name of the content template to add.
- template
- ITemplate
The content template.
Exceptions
A content template with the same name already exists.
Applies to
See also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.