Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: 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.
.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.