Share via


WebPartZone.CreateControlCollection Method

Creates a ControlCollection that contains all the controls in the zone.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Protected Overrides Function CreateControlCollection As ControlCollection
'Usage
Dim returnValue As ControlCollection

returnValue = Me.CreateControlCollection()
protected override ControlCollection CreateControlCollection()

Return Value

Type: System.Web.UI.ControlCollection
The collection that contains all the controls in the zone.

Remarks

This override creates a new ControlCollection to hold all the controls in the zone.

See Also

Reference

WebPartZone Class

WebPartZone Members

Microsoft.SharePoint.WebPartPages Namespace