指定したユーザー トークン、現在のディレクトリ、および一時ファイルを使用して、指定したコマンドを実行し、それに対して返される呼び出しを待機します。また、指定した文字列にコンパイラからの出力およびエラー情報を格納します。
Overloads Public Shared Function ExecWaitWithCapture( _
ByVal userToken As IntPtr, _ ByVal cmd As String, _ ByVal currentDir As String, _ ByVal tempFiles As TempFileCollection, _ ByRef outputName As String, _ ByRef errorName As String _) As Integer
[C#]
public static int ExecWaitWithCapture(IntPtruserToken,stringcmd,stringcurrentDir,TempFileCollectiontempFiles, ref stringoutputName, ref stringerrorName);
[C++]
public: static int ExecWaitWithCapture(IntPtruserToken,String* cmd,String* currentDir,TempFileCollection* tempFiles, String** outputName, String** errorName);
[JScript]
public static function ExecWaitWithCapture(
userToken : IntPtr,cmd : String,currentDir : String,tempFiles : TempFileCollection,outputName : String,errorName : String) : int;
パラメータ
- userToken
コンパイラ プロセスを開始するために使用するトークン。 - cmd
実行するコマンド。 - currentDir
プロセスを開始するディレクトリ。 - tempFiles
コンパイル中に生成される中間ファイルへの参照を管理し、格納するために使用する TempFileCollection 。 - outputName
コンパイラによるメッセージ出力を格納する文字列への参照。 - errorName
発生したエラーの名前を格納する文字列への参照。
戻り値
コンパイラからの戻り値。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
Executor クラス | Executor メンバ | System.CodeDom.Compiler 名前空間 | Executor.ExecWaitWithCapture オーバーロードの一覧 | TempFileCollection