UITestControlFactory.FromWindowHandle Method
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assemblies: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
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
Return Value
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
.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.