共用方式為


SilverlightTestPlugin.GetElementFromWindowHandle 方法

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

這個成員會覆寫 UITechnologyManager.GetElementFromWindowHandle(IntPtr)

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight (在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll 中)

語法

'宣告
Public Overrides Function GetElementFromWindowHandle ( _
    handle As IntPtr _
) As IUITechnologyElement
public override IUITechnologyElement GetElementFromWindowHandle(
    IntPtr handle
)
public:
virtual IUITechnologyElement^ GetElementFromWindowHandle(
    IntPtr handle
) override
abstract GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement 
override GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement 
public override function GetElementFromWindowHandle(
    handle : IntPtr
) : IUITechnologyElement

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
傳回 IUITechnologyElement

實作

IUITechnologyManager.GetElementFromWindowHandle(IntPtr)

.NET Framework 安全性

請參閱

參考

SilverlightTestPlugin 類別

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