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

返回

ControlCollection

始终返回 EmptyControlCollection

注解

TreeView 控件不支持嵌入子控件。 此方法已被重写,以防止添加子控件,并且始终返回对象 System.Web.UI.EmptyControlCollection

适用于

另请参阅