ProfilePropertyLoader.FindControl - Méthode
Recherche dans les contrôles de page d'un contrôle du type spécifié.
Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans Microsoft.SharePoint.Portal.dll)
Syntaxe
'Déclaration
Public Shared Function FindControl ( _
objPage As Page, _
controlType As Type _
) As Control
'Utilisation
Dim objPage As Page
Dim controlType As Type
Dim returnValue As Control
returnValue = ProfilePropertyLoader.FindControl(objPage, _
controlType)
public static Control FindControl(
Page objPage,
Type controlType
)
Paramètres
objPage
Type : System.Web.UI.PageLa page de recherche doit être effectuée.
controlType
Type : System.TypeLe Type du contrôle à rechercher.
Valeur renvoyée
Type : System.Web.UI.Control
Le premier contrôle trouvé qui correspond au Type...
Remarques
Cette méthode retourne null si objPage est null , ou si un contrôle est introuvable.