Udostępnij za pośrednictwem


Metoda UITechnologyElementProxy.GetQueryIdForRelatedElement —

Pobiera QueryId dla elementu powiązanego określonej przez UITestElementKind.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITesting
Zestaw:  Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)

Składnia

'Deklaracja
Public Overrides Function GetQueryIdForRelatedElement ( _
    relatedElement As UITestElementKind, _
    additionalInfo As Object, _
    <OutAttribute> ByRef maxDepth As Integer _
) As String
public override string GetQueryIdForRelatedElement(
    UITestElementKind relatedElement,
    Object additionalInfo,
    out int maxDepth
)
public:
virtual String^ GetQueryIdForRelatedElement(
    UITestElementKind relatedElement, 
    Object^ additionalInfo, 
    [OutAttribute] int% maxDepth
) override
abstract GetQueryIdForRelatedElement : 
        relatedElement:UITestElementKind * 
        additionalInfo:Object * 
        maxDepth:int byref -> string 
override GetQueryIdForRelatedElement : 
        relatedElement:UITestElementKind * 
        additionalInfo:Object * 
        maxDepth:int byref -> string 
public override function GetQueryIdForRelatedElement(
    relatedElement : UITestElementKind, 
    additionalInfo : Object, 
    maxDepth : int
) : String

Parametry

  • additionalInfo
    Typ: System.Object
    Wszelkie dodatkowe informacje, które jest wymagane.
  • maxDepth
    Typ: System.Int32%
    Maksymalna głębokość wyszukiwania pod tym elementem odnaleźć wymaganego składnika.

Wartość zwracana

Typ: System.String
QueryId element.

Implementuje

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITechnologyElementProxy Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting