TreeView.CreateControlCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個集合來儲存子控制項。
protected:
override System::Web::UI::ControlCollection ^ CreateControlCollection();
protected override System.Web.UI.ControlCollection CreateControlCollection();
override this.CreateControlCollection : unit -> System.Web.UI.ControlCollection
Protected Overrides Function CreateControlCollection () As ControlCollection
傳回
總是回傳一個 EmptyControlCollection。
備註
TreeView控制系統不支持嵌入兒童控制。 此方法已被覆寫以防止新增子控制項,且總是回傳物件 System.Web.UI.EmptyControlCollection 。