IUITechnologyManager.Search(Object, IUITechnologyElement, Int32) Method

Definition

Searches for an element in the parent element that matches the condition of the provided query ID cookie.

public:
 cli::array <System::Object ^> ^ Search(System::Object ^ parsedQueryIdCookie, Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ parentElement, int maxDepth);
[System.Runtime.InteropServices.DispId(15)]
public object[] Search (object parsedQueryIdCookie, Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement parentElement, int maxDepth);
[<System.Runtime.InteropServices.DispId(15)>]
abstract member Search : obj * Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * int -> obj[]
Public Function Search (parsedQueryIdCookie As Object, parentElement As IUITechnologyElement, maxDepth As Integer) As Object()

Parameters

parsedQueryIdCookie
Object

A previously parsed query cookie.

parentElement
IUITechnologyElement

An IUITechnologyElement object.

maxDepth
Int32

An int that indicates how deep into the control hierarchy to search.

Returns

Object[]

An array of elements that match the query, or null if no elements are found.

Attributes

Exceptions

This implementation does not support this method.

Applies to