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: System.IntPtr
An IntPtr that identifies an existing element.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The specified element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.