UITechnologyManager.GetElementFromWindowHandle Method

Retrieves the element that is identified by the provided window handle.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The specified element.

Implements

IUITechnologyManager.GetElementFromWindowHandle(IntPtr)

.NET Framework Security

See Also

Reference

UITechnologyManager Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace