共用方式為


SPMobileComponent.GetParentMobileComponent Method

Gets the parent SPMobileComponent object of the specified Control object.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overridable Function GetParentMobileComponent ( _
    control As Control _
) As SPMobileComponent
'Usage
Dim control As Control
Dim returnValue As SPMobileComponent

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

Parameters

Return Value

Type: Microsoft.SharePoint.MobileControls.SPMobileComponent
A SPMobileComponent object that is the parent, or a higher ancestor, of control.

Remarks

In the default implementation, if the immediate parent of control is not a SPMobileComponent object, the GetParentMobileComponent method searches up the ancestor tree until it finds an SPMobileComponent object and then return it. If none is found, the method returns a null reference (Nothing in Visual Basic).

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace