Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
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
Function MatchElement ( _
element As IUITechnologyElement, _
parsedQueryIdCookie As Object, _
<OutAttribute> ByRef useEngine As Boolean _
) As Boolean
bool MatchElement(
IUITechnologyElement element,
Object parsedQueryIdCookie,
out bool useEngine
)
bool MatchElement(
IUITechnologyElement^ element,
Object^ parsedQueryIdCookie,
[OutAttribute] bool% useEngine
)
abstract MatchElement :
element:IUITechnologyElement *
parsedQueryIdCookie:Object *
useEngine:bool byref -> bool
function MatchElement(
element : IUITechnologyElement,
parsedQueryIdCookie : Object,
useEngine : boolean
) : boolean
Parameters
- element
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
An IUITechnologyElement object.
- parsedQueryIdCookie
Type: System.Object
An Object that represents the cookie of a previously parsed IQueryElement.
- useEngine
Type: System.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: System.Boolean
true if the element matches the query element; otherwise, false.
Exceptions
Exception | Condition |
---|---|
NotSupportedException | This method is not supported by this technology manager. |
.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