Aracılığıyla paylaş


IUITechnologyManager.MatchElement Yöntem

Bu API, .NET Framework altyapısını destekler ve doğrudan kodunuzdan kullanılmaya yönelik değildir.

Sağlanan öğesi önceden ayrıştırılmış sorgu kimliği tanımlama bilgisi eşleşip gösteren bir değeri döndürür.

Ad alanı:  Microsoft.VisualStudio.TestTools.UITest.Extension
Derleme:  Microsoft.VisualStudio.TestTools.UITest.Extension (Microsoft.VisualStudio.TestTools.UITest.Extension.dll içinde)

Sözdizimi

'Bildirim
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

Parametreler

  • useEngine
    Tür: System.Boolean%
    (Çıkış) Bu teknoloji Yöneticisi sorgu öğesi bir bölümünü veya tümünü eşleştirmek için sınama çerçevesi kullanmayı seçmiş olup olmadığını gösteren bir Boole değeri.

Dönüş Değeri

Tür: System.Boolean
true Sorgu öğesi öðenin eşleşmesi durumunda; Aksi halde, false.

Özel Durumlar

Exception Koşul
NotSupportedException

Bu yöntem, bu teknoloji Yöneticisi tarafından desteklenmiyor.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

IUITechnologyManager Arabirim

Microsoft.VisualStudio.TestTools.UITest.Extension Ad Alanı

IUITechnologyElement

IQueryElement