UITechnologyManager.GetElementFromWindowHandle 方法

检索由所提供的窗口句柄标识的元素。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
Public MustOverride Function GetElementFromWindowHandle ( _
    handle As IntPtr _
) As IUITechnologyElement
public abstract IUITechnologyElement GetElementFromWindowHandle(
    IntPtr handle
)
public:
virtual IUITechnologyElement^ GetElementFromWindowHandle(
    IntPtr handle
) abstract
abstract GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement
public abstract function GetElementFromWindowHandle(
    handle : IntPtr
) : IUITechnologyElement

参数

  • handle
    类型:IntPtr

    一个标识现有元素的 IntPtr

返回值

类型:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
指定的元素。

实现

IUITechnologyManager.GetElementFromWindowHandle(IntPtr)

.NET Framework 安全性

请参阅

参考

UITechnologyManager 类

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空间