Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
e
Type: System.EventArgsThe data for the event.
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.