Executor.ExecWaitWithCapture Metodo

Definizione

Esegue il comando specificato.

Overload

Nome Descrizione
ExecWaitWithCapture(String, TempFileCollection, String, String)

Esegue il comando specificato usando i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Esegue il comando specificato usando il token utente e i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Esegue il comando specificato usando la directory corrente e i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Esegue il comando specificato usando il token utente, la directory corrente e i file temporanei specificati; attende quindi che la chiamata venga restituita, archiviando le informazioni sull'output e sugli errori dal compilatore nelle stringhe specificate.

ExecWaitWithCapture(String, TempFileCollection, String, String)

Esegue il comando specificato usando i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Parametri

cmd
String

Comando da eseguire.

tempFiles
TempFileCollection

Oggetto TempFileCollection con cui gestire e archiviare i riferimenti ai file intermedi generati durante la compilazione.

outputName
String

Riferimento a una stringa che archivierà l'output del messaggio del compilatore.

errorName
String

Riferimento a una stringa che archivierà il nome dell'errore o degli errori rilevati.

Valori restituiti

Valore restituito dal compilatore.

Si applica a

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

Esegue il comando specificato usando il token utente e i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Parametri

userToken
IntPtr

nativeint

Token con cui avviare il processo del compilatore.

cmd
String

Comando da eseguire.

tempFiles
TempFileCollection

Oggetto TempFileCollection con cui gestire e archiviare i riferimenti ai file intermedi generati durante la compilazione.

outputName
String

Riferimento a una stringa che archivierà l'output del messaggio del compilatore.

errorName
String

Riferimento a una stringa che archivierà il nome dell'errore o degli errori rilevati.

Valori restituiti

Valore restituito dal compilatore.

Commenti

Il userToken parametro accetta un token di accesso alla sicurezza Win32 che indica il contesto di sicurezza per l'avvio del processo. Per altre informazioni, vedere la documentazione del metodo CreateProcessAsUser .

Vedi anche

Si applica a

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

Esegue il comando specificato usando la directory corrente e i file temporanei specificati e attende che la chiamata restituisca, archiviando le informazioni di output e di errore dal compilatore nelle stringhe specificate.

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

Parametri

cmd
String

Comando da eseguire.

currentDir
String

Directory corrente.

tempFiles
TempFileCollection

Oggetto TempFileCollection con cui gestire e archiviare i riferimenti ai file intermedi generati durante la compilazione.

outputName
String

Riferimento a una stringa che archivierà l'output del messaggio del compilatore.

errorName
String

Riferimento a una stringa che archivierà il nome dell'errore o degli errori rilevati.

Valori restituiti

Valore restituito dal compilatore.

Vedi anche

Si applica a

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

Esegue il comando specificato usando il token utente, la directory corrente e i file temporanei specificati; attende quindi che la chiamata venga restituita, archiviando le informazioni sull'output e sugli errori dal compilatore nelle stringhe specificate.

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

Parametri

userToken
IntPtr

nativeint

Token con cui avviare il processo del compilatore.

cmd
String

Comando da eseguire.

currentDir
String

Directory in cui avviare il processo.

tempFiles
TempFileCollection

Oggetto TempFileCollection con cui gestire e archiviare i riferimenti ai file intermedi generati durante la compilazione.

outputName
String

Riferimento a una stringa che archivierà l'output del messaggio del compilatore.

errorName
String

Riferimento a una stringa che archivierà il nome dell'errore o degli errori rilevati.

Valori restituiti

Valore restituito dal compilatore.

Vedi anche

Si applica a