ApplicationUnderTest.Launch 方法 (String, String, String)

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

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

语法

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

参数

  • fileName
    类型:System.String
    要启动的应用程序的文件名。
  • alternateFileName
    类型:System.String
    备用文件名随环境变量一起。
  • arguments
    类型:System.String
    要传递给应用程序的实参。

返回值

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

.NET Framework 安全性

请参见

参考

ApplicationUnderTest 类

Launch 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间