Compartir a través de


IUITechnologyElement.GetQueryIdForRelatedElement (Método)

Espacio de nombres:  Microsoft.VisualStudio.TestTools.UITest.Extension
Ensamblado:  Microsoft.VisualStudio.TestTools.UITest.Extension (en Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Sintaxis

'Declaración
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
    Cualquier información adicional que sea necesaria.Por ejemplo, si relatedElement es Child, este parámetro contendrá el nombre del elemento secundario.
  • maxDepth
    Tipo: System.Int32%
    Nivel máximo de profundidad de la búsqueda del elemento relacionado.

Valor devuelto

Tipo: System.String
Identificador de consulta del elemento relacionado.

Seguridad de .NET Framework

Vea también

Referencia

IUITechnologyElement Interfaz

Microsoft.VisualStudio.TestTools.UITest.Extension (Espacio de nombres)

UITestElementKind