共用方式為


MasterPage.ContentPlaceHolders 屬性

定義

取得主版頁面用來定義不同內容區的 ContentPlaceHolder 控制項清單。

protected public:
 property System::Collections::IList ^ ContentPlaceHolders { System::Collections::IList ^ get(); };
[System.ComponentModel.Browsable(false)]
protected internal System.Collections.IList ContentPlaceHolders { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ContentPlaceHolders : System.Collections.IList
Protected Friend ReadOnly Property ContentPlaceHolders As IList

屬性值

IList

IList 控制項的 ContentPlaceHolder,主版頁面使用這些控制項做為內容頁面上所找到之 Content 控制項的預留位置。

屬性

備註

衍生的主版頁面類別 ContentPlaceHolders 會存取屬性,以列出 ContentPlaceHolder 主控制項所包含的目前控制項。 衍生類型通常不會覆寫 ContentPlaceHolders 屬性。

適用於