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 傳回 物件。

適用於

另請參閱