共用方式為


WebPartMobileAdapter.OnPreRenderForMobile Method

Replaces the OnPreRender(EventArgs) method of the control that is being adapted when the control is on a WebPartMobilePage.

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

Syntax

'Declaration
Protected Overridable Sub OnPreRenderForMobile ( _
    e As EventArgs _
)
'Usage
Dim e As EventArgs

Me.OnPreRenderForMobile(e)
protected virtual void OnPreRenderForMobile(
    EventArgs e
)

Parameters

Remarks

The default implementation only calls the base OnPreRender(EventArgs) method.

Do not call this method from your own code. The Microsoft SharePoint Foundation mobile adaption framework will call it as part of the PreRender event handling.

Notes to Inheritors

Override this method when you need additional processing during the prerendering phase of the control’s life cycle when the control is used on a mobile device.

Important

Your override must always call the base adapter class’s OnPreRender(EventArgs) method to ensure that the PreRender event of the control that is being adapted is raised.

See Also

Reference

WebPartMobileAdapter Class

WebPartMobileAdapter Members

Microsoft.SharePoint.WebPartPages Namespace