Share via


UITechnologyManager.MatchElement Method

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

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public MustOverride Function MatchElement ( _
    element As IUITechnologyElement, _
    parsedQueryIdCookie As Object, _
    <OutAttribute> ByRef useEngine As Boolean _
) As Boolean
public abstract bool MatchElement(
    IUITechnologyElement element,
    Object parsedQueryIdCookie,
    out bool useEngine
)
public:
virtual bool MatchElement(
    IUITechnologyElement^ element, 
    Object^ parsedQueryIdCookie, 
    [OutAttribute] bool% useEngine
) abstract
abstract MatchElement : 
        element:IUITechnologyElement * 
        parsedQueryIdCookie:Object * 
        useEngine:bool byref -> bool
public abstract function MatchElement(
    element : IUITechnologyElement, 
    parsedQueryIdCookie : Object, 
    useEngine : boolean
) : boolean

Parameters

  • parsedQueryIdCookie
    Type: Object

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

  • useEngine
    Type: 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.

Return Value

Type: Boolean
true if the element matches the query element; otherwise, false.

Implements

IUITechnologyManager.MatchElement(IUITechnologyElement, Object, Boolean%)

Exceptions

Exception Condition
NotSupportedException

This method is not supported by this technology manager.

.NET Framework Security

See Also

Reference

UITechnologyManager Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement

IQueryElement