SPMobileComponent.GetParentMobileComponent Method

Gets the parent SPMobileComponent object of the specified Control object.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in 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


Return Value

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


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


SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace