WebPartZone.OnInit Method

Handles the Init event.

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

Syntax

'Declaration
Protected Overrides Sub OnInit ( _
    e As EventArgs _
)
'Usage
Dim e As EventArgs

Me.OnInit(e)
protected override void OnInit(
    EventArgs e
)

Parameters

Exceptions

Exception Condition
WebPartPageUserException

The ID property is null or empty.

-or-

A current WebPartManager cannot be found.

Remarks

This override registers the zone with the WebPartManager control.

This override will throw a WebPartPageUserException() if the ID property has no value or a current WebPartManager cannot be found.

See Also

Reference

WebPartZone Class

WebPartZone Members

Microsoft.SharePoint.WebPartPages Namespace