HierarchicalDataSourceControl.CreateControlCollection 方法

定義

建立新的 ControlCollection 物件來保存伺服器控制項的子控制項 (常值和伺服器)。Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.

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

防止加入任何子控制項的 EmptyControlCollectionAn EmptyControlCollection that prevents any child controls from being added.

備註

CreateControlCollection類別會覆寫方法 HierarchicalDataSourceControl ,以防止加入子控制項。The CreateControlCollection method is overridden by the HierarchicalDataSourceControl class to prevent child controls from being added.

適用於