SPUtility.GetParentControl - Méthode

Retourne le contrôle qui est le parent d'un contrôle spécifié.

Espace de noms :  Microsoft.SharePoint.Utilities
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function GetParentControl ( _
    control As Control, _
    type As Type _
) As Control
'Utilisation
Dim control As Control
Dim type As Type
Dim returnValue As Control

returnValue = SPUtility.GetParentControl(control, _
    type)
public static Control GetParentControl(
    Control control,
    Type type
)

Paramètres

  • type
    Type : System.Type

    Le type du contrôle parent.

Valeur renvoyée

Type : System.Web.UI.Control
Le premier contrôle dans l'arborescence du contrôle qui correspond au type spécifié.

Voir aussi

Référence

SPUtility classe

SPUtility - Membres

Microsoft.SharePoint.Utilities - Espace de noms