Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
control
Type: System.Web.UI.ControlThe Control whose parent is sought.
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).