ApplicationUnderTest.FromProcess-Methode

Erstellt einen Verweis auf ein ApplicationUnderTest-Element aus einem vorhandenen Prozess.

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

Parameter

Rückgabewert

Typ: Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
Ein Verweis auf eine Anwendung aus einem vorhandenen Prozess.

.NET Framework-Sicherheit

Siehe auch

Referenz

ApplicationUnderTest Klasse

Microsoft.VisualStudio.TestTools.UITesting-Namespace