WebPartMobileAdapter.OnInitForMobile 方法
替换的控件,当控件位于WebPartMobilePage正在改编的OnInit(EventArgs)方法。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Overridable Sub OnInitForMobile ( _
e As EventArgs _
)
用法
Dim e As EventArgs
Me.OnInitForMobile(e)
protected virtual void OnInitForMobile(
EventArgs e
)
参数
e
类型:System.EventArgs一个包含事件数据的对象。
备注
默认实现仅调用基OnInit(EventArgs)方法。
不从您自己的代码调用此方法。Microsoft SharePoint Foundation移动适配框架将调用其作为Init事件处理的一部分。
针对继承者的注释
当您需要其他初始化逻辑呈现在移动设备上的控件,则覆盖此方法。
![]() |
---|
重写必须始终调用基适配器类OnInit(EventArgs)方法,以确保引发Init事件正在改编的控件。 |