IUITechnologyElement.GetQueryIdForRelatedElement Method

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

Syntax

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

Parameters

  • additionalInfo
    Type: Object

    Any additional information that is required. For example, if the relatedElement is Child, this parameter would contain the name of the child element.

  • maxDepth
    Type: Int32%

    The maximum level of depth to search for the related element.

Return Value

Type: String
The query ID for the related element.

.NET Framework Security

See Also

Reference

IUITechnologyElement Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

UITestElementKind