Share via


IUITechnologyElement.GetQueryIdForRelatedElement Method

Definition

public:
 System::String ^ GetQueryIdForRelatedElement(Microsoft::VisualStudio::TestTools::UITest::Extension::UITestElementKind relatedElement, System::Object ^ additionalInfo, [Runtime::InteropServices::Out] int % maxDepth);
public string GetQueryIdForRelatedElement (Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKind relatedElement, object additionalInfo, out int maxDepth);
abstract member GetQueryIdForRelatedElement : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKind * obj * int -> string
Public Function GetQueryIdForRelatedElement (relatedElement As UITestElementKind, additionalInfo As Object, ByRef maxDepth As Integer) As String

Parameters

relatedElement
UITestElementKind

A member of the UITestElementKind enumeration.

additionalInfo
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
Int32

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

Returns

The query ID for the related element.

Applies to