Share via


IUITechnologyManager.GetElementFromWindowHandle Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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
Function GetElementFromWindowHandle ( _
    handle As IntPtr _
) As IUITechnologyElement
IUITechnologyElement GetElementFromWindowHandle(
    IntPtr handle
)
IUITechnologyElement^ GetElementFromWindowHandle(
    IntPtr handle
)
abstract GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement
function GetElementFromWindowHandle(
    handle : IntPtr
) : IUITechnologyElement

Parameters

  • handle
    Type: IntPtr

    An IntPtr that identifies an existing element.

Return Value

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

.NET Framework Security

See Also

Reference

IUITechnologyManager Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace