DataFormWebPart.FindControlInNamingContainerStack - Méthode

Recherche le contrôle spécifié dans une pile d'objets NamingContainer .

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

Syntaxe

'Déclaration
Public Shared Function FindControlInNamingContainerStack ( _
    control As Control, _
    controlId As String _
) As Control
'Utilisation
Dim control As Control
Dim controlId As String
Dim returnValue As Control

returnValue = DataFormWebPart.FindControlInNamingContainerStack(control, _
    controlId)
public static Control FindControlInNamingContainerStack(
    Control control,
    string controlId
)

Paramètres

Valeur renvoyée

Type : System.Web.UI.Control

Remarques

Remonte la pile d'objets NamingContainer commençant à control rechercher un contrôle qui possède l' ID controlId. Si control est lui-même un objet INamingContainer , la recherche commence par le contrôle ; dans le cas contraire, la recherche commence par control.NamingContainer.

Voir aussi

Référence

DataFormWebPart classe

DataFormWebPart - Membres

Microsoft.SharePoint.WebPartPages - Espace de noms