BrowserWindow.FromProcess Method
Creates a reference to a Web browser window that is running in an existing process.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Function FromProcess ( _
processToWrap As Process _
) As BrowserWindow
public static BrowserWindow FromProcess(
Process processToWrap
)
public:
static BrowserWindow^ FromProcess(
Process^ processToWrap
)
static member FromProcess :
processToWrap:Process -> BrowserWindow
public static function FromProcess(
processToWrap : Process
) : BrowserWindow
Parameters
- processToWrap
Type: System.Diagnostics.Process
The process from which to create a BrowserWindow reference.
Return Value
Type: Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
A reference to a Web browser window that is running in an existing process.
.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.