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
- handle
Type: System.IntPtr
An IntPtr that identifies an existing element.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The specified element.
Implements
IUITechnologyManager.GetElementFromWindowHandle(IntPtr)
.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.