Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
relatedElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKindThe kind of related element.
additionalInfo
Type: ObjectAny 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
- 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.