Creates a reference to an ApplicationUnderTest from 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 ApplicationUnderTest
public static ApplicationUnderTest FromProcess(
    Process processToWrap
)
public:
static ApplicationUnderTest^ FromProcess(
    Process^ processToWrap
)
static member FromProcess : 
        processToWrap:Process -> ApplicationUnderTest
public static function FromProcess(
    processToWrap : Process
) : ApplicationUnderTest
Parameters
- processToWrap 
 Type: Process- The process from which to create an ApplicationUnderTest reference. 
Return Value
Type: Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
A reference to an application from 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.