次の方法で共有


ApplicationUnderTest.Launch メソッド (String, String, String, String, SecureString, 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, _
    userName As String, _
    password As SecureString, _
    domain As String _
) As ApplicationUnderTest
public static ApplicationUnderTest Launch(
    string fileName,
    string alternateFileName,
    string arguments,
    string userName,
    SecureString password,
    string domain
)
public:
static ApplicationUnderTest^ Launch(
    String^ fileName, 
    String^ alternateFileName, 
    String^ arguments, 
    String^ userName, 
    SecureString^ password, 
    String^ domain
)
static member Launch : 
        fileName:string * 
        alternateFileName:string * 
        arguments:string * 
        userName:string * 
        password:SecureString * 
        domain:string -> ApplicationUnderTest 
public static function Launch(
    fileName : String, 
    alternateFileName : String, 
    arguments : String, 
    userName : String, 
    password : SecureString, 
    domain : String
) : ApplicationUnderTest

パラメーター

  • fileName
    型: System.String
    起動するアプリケーションのファイル名。
  • alternateFileName
    型: System.String
    環境変数を伴う代替ファイル名。
  • arguments
    型: System.String
    アプリケーションに渡される引数。
  • userName
    型: System.String
    アプリケーションの起動に使用するユーザー名。

戻り値

型: Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
起動したアプリケーション。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ApplicationUnderTest クラス

Launch オーバーロード

Microsoft.VisualStudio.TestTools.UITesting 名前空間