Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElement.GetQueryIdForRelatedElement Method (UITestElementKind, Object, Int32)

 

Returns the query ID for a related element.

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

public abstract 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.

Return to top
Show: