Executor.ExecWaitWithCapture メソッド

定義

指定されたコマンドを実行します。

オーバーロード

ExecWaitWithCapture(String, TempFileCollection, String, String)

指定した一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)

指定したユーザー トークンと一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

ExecWaitWithCapture(String, String, TempFileCollection, String, String)

指定した現在のディレクトリと一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)

指定したユーザー トークン、現在のディレクトリ、および一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

ExecWaitWithCapture(String, TempFileCollection, String, String)

ソース:
Executor.cs
ソース:
Executor.cs
ソース:
Executor.cs

指定した一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

public:
 static int ExecWaitWithCapture(System::String ^ cmd, System::CodeDom::Compiler::TempFileCollection ^ tempFiles, System::String ^ % outputName, System::String ^ % errorName);
public static int ExecWaitWithCapture (string cmd, System.CodeDom.Compiler.TempFileCollection tempFiles, ref string outputName, ref string errorName);
static member ExecWaitWithCapture : string * System.CodeDom.Compiler.TempFileCollection * string * string -> int
Public Shared Function ExecWaitWithCapture (cmd As String, tempFiles As TempFileCollection, ByRef outputName As String, ByRef errorName As String) As Integer

パラメーター

cmd
String

実行するコマンドです。

tempFiles
TempFileCollection

コンパイル時に生成された中間ファイルへの参照を管理し格納する TempFileCollection

outputName
String

コンパイラによるメッセージ出力を格納する文字列への参照。

errorName
String

発生したエラーの名前を格納する文字列への参照。

戻り値

コンパイラからの戻り値。

適用対象

ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)

ソース:
Executor.cs
ソース:
Executor.cs
ソース:
Executor.cs

指定したユーザー トークンと一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

public:
 static int ExecWaitWithCapture(IntPtr userToken, System::String ^ cmd, System::CodeDom::Compiler::TempFileCollection ^ tempFiles, System::String ^ % outputName, System::String ^ % errorName);
public static int ExecWaitWithCapture (IntPtr userToken, string cmd, System.CodeDom.Compiler.TempFileCollection tempFiles, ref string outputName, ref string errorName);
static member ExecWaitWithCapture : nativeint * string * System.CodeDom.Compiler.TempFileCollection * string * string -> int
Public Shared Function ExecWaitWithCapture (userToken As IntPtr, cmd As String, tempFiles As TempFileCollection, ByRef outputName As String, ByRef errorName As String) As Integer

パラメーター

userToken
IntPtr

nativeint

コンパイラ プロセスを開始するために使用するトークン。

cmd
String

実行するコマンドです。

tempFiles
TempFileCollection

コンパイル時に生成された中間ファイルへの参照を管理し格納する TempFileCollection

outputName
String

コンパイラによるメッセージ出力を格納する文字列への参照。

errorName
String

発生したエラーの名前を格納する文字列への参照。

戻り値

コンパイラからの戻り値。

注釈

パラメーターは userToken 、開始するプロセスのセキュリティ コンテキストを示す Win32 セキュリティ アクセス トークンを受け取ります。 詳細については、 CreateProcessAsUser メソッドのドキュメントを参照してください。

こちらもご覧ください

適用対象

ExecWaitWithCapture(String, String, TempFileCollection, String, String)

ソース:
Executor.cs
ソース:
Executor.cs
ソース:
Executor.cs

指定した現在のディレクトリと一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

public:
 static int ExecWaitWithCapture(System::String ^ cmd, System::String ^ currentDir, System::CodeDom::Compiler::TempFileCollection ^ tempFiles, System::String ^ % outputName, System::String ^ % errorName);
public static int ExecWaitWithCapture (string cmd, string currentDir, System.CodeDom.Compiler.TempFileCollection tempFiles, ref string outputName, ref string errorName);
static member ExecWaitWithCapture : string * string * System.CodeDom.Compiler.TempFileCollection * string * string -> int
Public Shared Function ExecWaitWithCapture (cmd As String, currentDir As String, tempFiles As TempFileCollection, ByRef outputName As String, ByRef errorName As String) As Integer

パラメーター

cmd
String

実行するコマンドです。

currentDir
String

現在のフォルダー。

tempFiles
TempFileCollection

コンパイル時に生成された中間ファイルへの参照を管理し格納する TempFileCollection

outputName
String

コンパイラによるメッセージ出力を格納する文字列への参照。

errorName
String

発生したエラーの名前を格納する文字列への参照。

戻り値

コンパイラからの戻り値。

こちらもご覧ください

適用対象

ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)

ソース:
Executor.cs
ソース:
Executor.cs
ソース:
Executor.cs

指定したユーザー トークン、現在のディレクトリ、および一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。

public:
 static int ExecWaitWithCapture(IntPtr userToken, System::String ^ cmd, System::String ^ currentDir, System::CodeDom::Compiler::TempFileCollection ^ tempFiles, System::String ^ % outputName, System::String ^ % errorName);
public static int ExecWaitWithCapture (IntPtr userToken, string cmd, string currentDir, System.CodeDom.Compiler.TempFileCollection tempFiles, ref string outputName, ref string errorName);
static member ExecWaitWithCapture : nativeint * string * string * System.CodeDom.Compiler.TempFileCollection * string * string -> int
Public Shared Function ExecWaitWithCapture (userToken As IntPtr, cmd As String, currentDir As String, tempFiles As TempFileCollection, ByRef outputName As String, ByRef errorName As String) As Integer

パラメーター

userToken
IntPtr

nativeint

コンパイラ プロセスを開始するために使用するトークン。

cmd
String

実行するコマンドです。

currentDir
String

プロセスを開始するディレクトリ。

tempFiles
TempFileCollection

コンパイル時に生成された中間ファイルへの参照を管理し格納する TempFileCollection

outputName
String

コンパイラによるメッセージ出力を格納する文字列への参照。

errorName
String

発生したエラーの名前を格納する文字列への参照。

戻り値

コンパイラからの戻り値。

こちらもご覧ください

適用対象