Literal::CreateControlCollection Method ()

 

Creates an EmptyControlCollection object for the current instance of the Literal control.

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

protected:
virtual ControlCollection^ CreateControlCollection() override

Return Value

Type: System.Web.UI::ControlCollection^

A ControlCollection object to contain the current server control's child server controls.

The following code example demonstrates how to override the CreateControlCollection method in a custom server control so that it always returns an instance of the EmptyControlCollection class for the Literal object.

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

.NET Framework
Available since 1.1
Return to top
Show: