Metoda UITechnologyElementProxy.GetQueryIdForRelatedElement —
Pobiera powiązanych element określony przez UITestElementKind QueryId.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITesting
Zestaw: Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)
Składnia
'Deklaracja
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
Parametry
relatedElement
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestElementKindRodzaj elementów pokrewnych.
additionalInfo
Typ: ObjectWszelkie dodatkowe informacje, które jest wymagane.
maxDepth
Typ: Int32%Maksymalna głębokość wyszukiwania pod tym elementem odnaleźć wymaganego składnika.
Wartość zwracana
Typ: String
QueryId element.
Implementuje
IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.