Share via


UITechnologyManagerProxy.GetElementFromWindowHandle Method

Gets the element from the given window handle.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Function GetElementFromWindowHandle ( _
    handle As IntPtr _
) As IUITechnologyElement
public override IUITechnologyElement GetElementFromWindowHandle(
    IntPtr handle
)
public:
virtual IUITechnologyElement^ GetElementFromWindowHandle(
    IntPtr handle
) override
abstract GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement  
override GetElementFromWindowHandle : 
        handle:IntPtr -> IUITechnologyElement
public override function GetElementFromWindowHandle(
    handle : IntPtr
) : IUITechnologyElement

Parameters

  • handle
    Type: IntPtr

    The window handle.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The IUITechnologyElement from the window handle.

Implements

IUITechnologyManager.GetElementFromWindowHandle(IntPtr)

.NET Framework Security

See Also

Reference

UITechnologyManagerProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace