UITechnologyElement.GetQueryIdForRelatedElement Method
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)
Syntax
'Declaration
Public MustOverride Function GetQueryIdForRelatedElement ( _
relatedElement As UITestElementKind, _
additionalInfo As Object, _
<OutAttribute> ByRef maxDepth As Integer _
) As String
public abstract string GetQueryIdForRelatedElement(
UITestElementKind relatedElement,
Object additionalInfo,
out int maxDepth
)
public:
virtual String^ GetQueryIdForRelatedElement(
UITestElementKind relatedElement,
Object^ additionalInfo,
[OutAttribute] int% maxDepth
) abstract
abstract GetQueryIdForRelatedElement :
relatedElement:UITestElementKind *
additionalInfo:Object *
maxDepth:int byref -> string
public abstract function GetQueryIdForRelatedElement(
relatedElement : UITestElementKind,
additionalInfo : Object,
maxDepth : int
) : String
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.
Implements
IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.