System.Web.UI.WebControls.TreeView.CreateControlCollection Method

Creates a collection to store child controls.

Syntax

protected override System.Web.UI.ControlCollection CreateControlCollection ()

Returns

Always returns an System.Web.UI.EmptyControlCollection.

Remarks

The System.Web.UI.WebControls.TreeView control does not support embedding of child controls. This method has been overridden to prevent the addition of child controls and always returns an System.Web.UI.EmptyControlCollection object.

Requirements

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