FromWindowHandle Method
Collapse the table of content
Expand the table of content

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)

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.

Community Additions

ADD
Show:
© 2016 Microsoft