Share via


WebPartMobilePage.OnInit Method

Represents the method that handles the Init event.

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

Syntax

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

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

Parameters

Remarks

Adds all Web Parts with mobile adapters to the control collection of the page. However, if the request URL includes a QueryString that identifies a particular Web Part and the page is in detail view, then only the Web Part that is specified in the URL is added.

See Also

Reference

WebPartMobilePage Class

WebPartMobilePage Members

Microsoft.SharePoint.WebPartPages Namespace