Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITestControlFactory.FromWindowHandle Method (IntPtr)

 

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)

public static UITestControl FromWindowHandle(
	IntPtr windowHandle
)

Parameters

windowHandle
Type: System.IntPtr

The window handle to use to create a new UITestControl.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl

A new UITestControl from the specified window handle.

Return to top
Show: