UITechnologyElementProxy.GetQueryIdForRelatedElement Method

Gets the QueryId for the related element specified by UITestElementKind.

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

Parameters

  • additionalInfo
    Type: Object

    Any additional information that is required.

  • maxDepth
    Type: Int32%

    The maximum depth to search under this element to find the required component.

Return Value

Type: String
The QueryId of the element.

Implements

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace