ApplicationUnderTest.Launch 方法 (String)

使用指定的参数启动应用程序。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
Public Shared Function Launch ( _
    fileName As String _
) As ApplicationUnderTest
public static ApplicationUnderTest Launch(
    string fileName
)
public:
static ApplicationUnderTest^ Launch(
    String^ fileName
)
static member Launch : 
        fileName:string -> ApplicationUnderTest 
public static function Launch(
    fileName : String
) : ApplicationUnderTest

参数

  • fileName
    类型:System.String
    要启动的应用程序的文件名。

返回值

类型:Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
启动的应用程序。

.NET Framework 安全性

请参见

参考

ApplicationUnderTest 类

Launch 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间