This documentation is archived and is not being maintained.

IUITechnologyElement.GetQueryIdForRelatedElement Method

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

string GetQueryIdForRelatedElement(
	UITestElementKind relatedElement,
	Object additionalInfo,
	out int maxDepth
)

Parameters

relatedElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKind
A member of the UITestElementKind enumeration.
additionalInfo
Type: System.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: System.Int32%
The maximum level of depth to search for the related element.

Return Value

Type: System.String
The query ID for the related element.

Show: