SPMobileComponent.GetParentMobileComponent 方法

获取父指定的Control对象SPMobileComponent对象。

命名空间:  Microsoft.SharePoint.Mobile.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Overridable Function GetParentMobileComponent ( _
    control As Control _
) As SPMobileComponent
用法
Dim control As Control
Dim returnValue As SPMobileComponent

returnValue = Me.GetParentMobileComponent(control)
protected virtual SPMobileComponent GetParentMobileComponent(
    Control control
)

参数

返回值

类型:Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent
为父级或更高的上级的controlSPMobileComponent对象。

备注

在默认实现中,如果control的直接父不是一个SPMobileComponentGetParentMobileComponent方法搜索 up 上级树,直到找到SPMobileComponent对象,然后将其返回。如果没有找到,该方法将返回空引用(无 在 Visual Basic 中)。

另请参阅

引用

SPMobileComponent 类

SPMobileComponent 成员

Microsoft.SharePoint.Mobile.WebControls 命名空间