Partager via


UITechnologyElementProxy.GetQueryIdForRelatedElement, méthode

Obtient le QueryId pour l'élément associé UITestElementKind spécifié par.

Espace de noms :  Microsoft.VisualStudio.TestTools.UITesting
Assembly :  Microsoft.VisualStudio.TestTools.UITesting (dans Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntaxe

'Déclaration
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

Paramètres

  • additionalInfo
    Type : Object

    Toutes les informations supplémentaires qui sont obligatoires.

  • maxDepth
    Type : Int32%

    La profondeur maximale à rechercher dans l'élément à rechercher le composant requis.

Valeur de retour

Type : String
QueryId le de l'élément.

Implémentations

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

Sécurité .NET Framework

Voir aussi

Référence

UITechnologyElementProxy Classe

Microsoft.VisualStudio.TestTools.UITesting, espace de noms