Executor.ExecWaitWithCapture 方法

定義

執行指定的命令。

多載

名稱 Description
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
來源:
Executor.cs
來源:
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
來源:
Executor.cs
來源:
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
來源:
Executor.cs
來源:
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
來源:
Executor.cs
來源:
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

一個字串的參考,用來儲存遇到的錯誤名稱。

傳回

編譯器的回傳值。

另請參閱

適用於