Export (0) Print
Expand All

DropDownList::CreateControlCollection Method

This member overrides Control::CreateControlCollection(), and more complete documentation might be available in that topic.

Creates a collection to store child controls.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected:
virtual ControlCollection^ CreateControlCollection() override

Return Value

Type: System.Web.UI::ControlCollection
Always returns an EmptyControlCollection.

The following code example demonstrates how to override the CreateControlCollection method in a custom server control so that it always returns a new instance of the EmptyControlCollection class for the DropDownList control. For information about using custom server controls, see Walkthrough: Developing and Using a Custom Web Server Control.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft