SPMobileComponent.GetParentMobileComponent, méthode (Microsoft.SharePoint.MobileControls)

Gets the parent SPMobileComponent object of the specified Control object.

Espace de noms : Microsoft.SharePoint.MobileControls
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

Syntaxe

'Déclaration
Protected Overridable Function GetParentMobileComponent ( _
    control As Control _
) As SPMobileComponent
'Utilisation
Dim control As Control
Dim returnValue As SPMobileComponent

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

Paramètres

  • control
    The Control whose parent is sought.

Valeur retournée

A SPMobileComponent object that is the parent, or a higher ancestor, of control.

Notes

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 null.

Voir aussi

Référence

SPMobileComponent, classe
Membres SPMobileComponent
Microsoft.SharePoint.MobileControls, espace de noms