共用方式為


UnsecuredLayoutsPageBase.OnPreInit Method

Represents the method that handles the PreInit event.

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

Syntax

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

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

Parameters

Remarks

This override calls the base method, then issues HTTP Error 404 if Web is a null reference (Nothing in Visual Basic) and AllowNullWeb is false.

See Also

Reference

UnsecuredLayoutsPageBase Class

UnsecuredLayoutsPageBase Members

Microsoft.SharePoint.WebControls Namespace