Metoda UITechnologyElementProxy.GetQueryIdForRelatedElement —
Pobiera QueryId dla elementu powiązanego określonej przez UITestElementKind.
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.UITestElementKind
Rodzaj elementu powiązanego.
- additionalInfo
Typ: System.Object
Wszelkie dodatkowe informacje, które jest wymagane.
- maxDepth
Typ: System.Int32%
Maksymalna głębokość wyszukiwania pod tym elementem odnaleźć wymaganego składnika.
Wartość zwracana
Typ: System.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 Przy użyciu bibliotek z częściowo zaufanego kodu..