UITechnologyElementProxy.GetQueryIdForRelatedElement-Methode

Ruft das QueryId für das zugehörige Element ab, das von UITestElementKind angegeben wird.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

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

Parameter

  • additionalInfo
    Typ: System.Object
    Alle erforderlichen zusätzlichen Informationen.
  • maxDepth
    Typ: System.Int32%
    Die maximale, um die erforderliche Komponente zu finden unter diesem Element zu finden, Tiefe.

Rückgabewert

Typ: System.String
Das QueryId des Elements.

Implementiert

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

.NET Framework-Sicherheit

Siehe auch

Referenz

UITechnologyElementProxy Klasse

Microsoft.VisualStudio.TestTools.UITesting-Namespace