Partager via


IUITechnologyManager.Search, méthode

Cette API prend en charge l'infrastructure .NET Framework et n'est pas destinée à être utilisée directement à partir de votre code.

Recherche un élément dans l'élément parent qui correspond à la condition du cookie d'ID de requête fourni.

Espace de noms :  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly :  Microsoft.VisualStudio.TestTools.UITest.Extension (dans Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntaxe

'Déclaration
Function Search ( _
    parsedQueryIdCookie As Object, _
    parentElement As IUITechnologyElement, _
    maxDepth As Integer _
) As Object()
Object[] Search(
    Object parsedQueryIdCookie,
    IUITechnologyElement parentElement,
    int maxDepth
)
array<Object^>^ Search(
    Object^ parsedQueryIdCookie, 
    IUITechnologyElement^ parentElement, 
    int maxDepth
)
abstract Search : 
        parsedQueryIdCookie:Object * 
        parentElement:IUITechnologyElement * 
        maxDepth:int -> Object[] 
function Search(
    parsedQueryIdCookie : Object, 
    parentElement : IUITechnologyElement, 
    maxDepth : int
) : Object[]

Paramètres

  • parsedQueryIdCookie
    Type : System.Object
    Cookie de requête précédemment analysé.
  • maxDepth
    Type : System.Int32
    int qui indique jusqu'à quel niveau rechercher dans la hiérarchie des contrôles.

Valeur de retour

Type : array<System.Object[]
Tableau des éléments qui correspondent à la requête ou nullune référence null (Nothing en Visual Basic) si aucun élément n'est trouvé.

Exceptions

Exception Condition
NotSupportedException

Cette implémentation ne prend pas en charge cette méthode.

Sécurité .NET Framework

Voir aussi

Référence

IUITechnologyManager Interface

Microsoft.VisualStudio.TestTools.UITest.Extension, espace de noms

IUITechnologyElement