Método IUITechnologyElement.GetQueryIdForRelatedElement

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

Sintaxe

'Declaração
Function GetQueryIdForRelatedElement ( _
    relatedElement As UITestElementKind, _
    additionalInfo As Object, _
    <OutAttribute> ByRef maxDepth As Integer _
) As String
string GetQueryIdForRelatedElement(
    UITestElementKind relatedElement,
    Object additionalInfo,
    out int maxDepth
)
String^ GetQueryIdForRelatedElement(
    UITestElementKind relatedElement, 
    Object^ additionalInfo, 
    [OutAttribute] int% maxDepth
)
abstract GetQueryIdForRelatedElement : 
        relatedElement:UITestElementKind * 
        additionalInfo:Object * 
        maxDepth:int byref -> string 
function GetQueryIdForRelatedElement(
    relatedElement : UITestElementKind, 
    additionalInfo : Object, 
    maxDepth : int
) : String

Parâmetros

  • additionalInfo
    Tipo: System.Object
    Qualquer informação adicional é necessária.Por exemplo, se o relatedElement é Child, este parâmetro conteria o nome do elemento filho.
  • maxDepth
    Tipo: System.Int32%
    O nível máximo de profundidade para procurar o elemento relacionado.

Valor de retorno

Tipo: System.String
A identificação da consulta para o elemento relacionado.

Segurança do .NET Framework

Consulte também

Referência

IUITechnologyElement Interface

Namespace Microsoft.VisualStudio.TestTools.UITest.Extension

UITestElementKind