UITestControlFactory.FromWindowHandle Method

Returns a new UITestControl from the specified window handle.

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

Syntax

'Declaration
Public Shared Function FromWindowHandle ( _
    windowHandle As IntPtr _
) As UITestControl
public static UITestControl FromWindowHandle(
    IntPtr windowHandle
)
public:
static UITestControl^ FromWindowHandle(
    IntPtr windowHandle
)
static member FromWindowHandle : 
        windowHandle:IntPtr -> UITestControl 
public static function FromWindowHandle(
    windowHandle : IntPtr
) : UITestControl

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
A new UITestControl from the specified window handle.

.NET Framework Security

See Also

Reference

UITestControlFactory Class

Microsoft.VisualStudio.TestTools.UITesting Namespace