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
windowHandle
Type: IntPtrThe 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.
.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.