MasterPage.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.
Adds a Content control to the ContentTemplates dictionary.
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
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
See also
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET