IUITechnologyManager.Search Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Searches for an element in the parent element that matches the condition of the provided query ID cookie.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
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[]
Parameters
parsedQueryIdCookie
Type: ObjectA previously parsed query cookie.
parentElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElementAn IUITechnologyElement object.
maxDepth
Type: Int32An int that indicates how deep into the control hierarchy to search.
Return Value
Type: array<Object[]
An array of elements that match the query, or nulla null reference (Nothing in Visual Basic) if no elements are found.
Exceptions
Exception | Condition |
---|---|
NotSupportedException | This implementation does not support this method. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IUITechnologyManager Interface