Share via


IUITechnologyManager.MatchElement Method

Definition

Returns a value that indicates whether the provided element matches the previously parsed query ID cookie.

public:
 bool MatchElement(Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ element, System::Object ^ parsedQueryIdCookie, [Runtime::InteropServices::Out] bool % useEngine);
[System.Runtime.InteropServices.DispId(17)]
public bool MatchElement (Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement element, object parsedQueryIdCookie, out bool useEngine);
[<System.Runtime.InteropServices.DispId(17)>]
abstract member MatchElement : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement * obj * bool -> bool
Public Function MatchElement (element As IUITechnologyElement, parsedQueryIdCookie As Object, ByRef useEngine As Boolean) As Boolean

Parameters

parsedQueryIdCookie
Object

An Object that represents the cookie of a previously parsed IQueryElement.

useEngine
Boolean

(Output) A Boolean value that indicates whether this technology manager has chosen to use the test framework to match all or part of the query element.

Returns

true if the element matches the query element; otherwise, false.

Attributes

Exceptions

This method is not supported by this technology manager.

Applies to