System.Web.UI.HierarchicalDataSourceControl.CreateControlCollection Method

Creates a new System.Web.UI.ControlCollection object to hold the child controls (both literal and server) of the server control.

Syntax

protected override ControlCollection CreateControlCollection ()

Returns

An System.Web.UI.EmptyControlCollection that prevents any child controls from being added.

Remarks

The HierarchicalDataSourceControl.CreateControlCollection method is overridden by the System.Web.UI.HierarchicalDataSourceControl class to prevent child controls from being added.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0