共用方式為


SilverlightContainer.GetQueryIdForRelatedElement 方法

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

這個成員會覆寫 UITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight (在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.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

參數

傳回值

型別:System.String
傳回 String

實作

IUITechnologyElement.GetQueryIdForRelatedElement(UITestElementKind, Object, Int32%)

.NET Framework 安全性

請參閱

參考

SilverlightContainer 類別

Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight 命名空間