UITechnologyManager.MatchElement 方法

定义

返回一个值,该值指示提供的元素是否与以前分析的查询 ID cookie 匹配。

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

参数

element
IUITechnologyElement

一个 IUITechnologyElement 对象。

parsedQueryIdCookie
Object

Object表示以前分析的的 cookie 的 IQueryElement

useEngine
Boolean

(输出) 一个布尔值,该值指示此技术管理器是否选择使用测试框架来匹配所有或部分 query 元素。

返回

Boolean

如果元素与查询元素匹配,则为 true; 否则为。否则为 false。

实现

例外

此技术管理器不支持此方法。

适用于