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

字串的參考,將儲存發生的錯誤名稱。

傳回

編譯器的傳回值。

另請參閱

適用於