TreeView.CreateControlCollection 方法

定義

建立一個集合來儲存子控制項。

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

適用於

另請參閱