次の方法で共有


UITechnologyElementProxy.GetQueryIdForRelatedElement メソッド

UITestElementKind で指定された関連の要素の QueryId を取得します。

名前空間:  Microsoft.VisualStudio.TestTools.UITesting
アセンブリ:  Microsoft.VisualStudio.TestTools.UITesting (Microsoft.VisualStudio.TestTools.UITesting.dll 内)

構文

'宣言
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

パラメーター

  • additionalInfo
    型 : System.Object
    必要となる追加情報。
  • maxDepth
    型 : System.Int32%
    必須コンポーネントを検索するには、この要素の下に検索する最大深度。

戻り値

型 : System.String
要素の QueryId。

実装

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

UITechnologyElementProxy クラス

Microsoft.VisualStudio.TestTools.UITesting 名前空間