Executor.ExecWaitWithCapture Método
Definição
Executa o comando especificado.Executes the specified command.
Sobrecargas
| ExecWaitWithCapture(String, TempFileCollection, String, String) |
Executa o comando especificado usando os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified temporary files and waits for the call to return, storing output and error information from the compiler in the specified strings. |
| ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String) |
Executa o comando especificado usando o token do usuário indicado e os arquivos temporários, e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified user token and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings. |
| ExecWaitWithCapture(String, String, TempFileCollection, String, String) |
Executa o comando especificado usando o diretório atual e os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified current directory and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings. |
| ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String) |
Executa o comando especificado usando o token do usuário, o diretório atual e os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified user token, current directory, and temporary files; then waits for the call to return, storing output and error information from the compiler in the specified strings. |
ExecWaitWithCapture(String, TempFileCollection, String, String)
Executa o comando especificado usando os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified temporary files and waits for the call to return, storing output and error information from the compiler in the specified strings.
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
Parâmetros
- cmd
- String
O comando a ser executado.The command to execute.
- tempFiles
- TempFileCollection
Um TempFileCollection com o qual gerenciar e armazenar as referências em arquivos intermediários gerados durante a compilação.A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
Uma referência a uma cadeia de caracteres que armazenará a saída da mensagem do compilador.A reference to a string that will store the compiler's message output.
- errorName
- String
Uma referência a uma cadeia de caracteres que armazenará o nome dos erros encontrados.A reference to a string that will store the name of the error or errors encountered.
Retornos
O valor retornado do compilador.The return value from the compiler.
Aplica-se a
ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)
Executa o comando especificado usando o token do usuário indicado e os arquivos temporários, e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified user token and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings.
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
Parâmetros
- userToken
- IntPtr
O token com o qual iniciar o processo do compilador.The token to start the compiler process with.
- cmd
- String
O comando a ser executado.The command to execute.
- tempFiles
- TempFileCollection
Um TempFileCollection com o qual gerenciar e armazenar as referências em arquivos intermediários gerados durante a compilação.A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
Uma referência a uma cadeia de caracteres que armazenará a saída da mensagem do compilador.A reference to a string that will store the compiler's message output.
- errorName
- String
Uma referência a uma cadeia de caracteres que armazenará o nome dos erros encontrados.A reference to a string that will store the name of the error or errors encountered.
Retornos
O valor retornado do compilador.The return value from the compiler.
Comentários
O userToken parâmetro aceita um token de acesso de segurança do Win32 que indica o contexto de segurança para o processo a ser iniciado no.The userToken parameter accepts a Win32 security access token that indicates the security context for the process to be started in. Para obter mais informações, consulte a documentação do método CreateProcessAsUser .For more information, see CreateProcessAsUser method documentation.
Confira também
Aplica-se a
ExecWaitWithCapture(String, String, TempFileCollection, String, String)
Executa o comando especificado usando o diretório atual e os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified current directory and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings.
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
Parâmetros
- cmd
- String
O comando a ser executado.The command to execute.
- currentDir
- String
O diretório atual.The current directory.
- tempFiles
- TempFileCollection
Um TempFileCollection com o qual gerenciar e armazenar as referências em arquivos intermediários gerados durante a compilação.A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
Uma referência a uma cadeia de caracteres que armazenará a saída da mensagem do compilador.A reference to a string that will store the compiler's message output.
- errorName
- String
Uma referência a uma cadeia de caracteres que armazenará o nome dos erros encontrados.A reference to a string that will store the name of the error or errors encountered.
Retornos
O valor retornado do compilador.The return value from the compiler.
Confira também
Aplica-se a
ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)
Executa o comando especificado usando o token do usuário, o diretório atual e os arquivos temporários indicados e aguarda o retorno da chamada, armazenando informações de saída e de erro do compilador nas cadeias de caracteres especificadas.Executes the specified command using the specified user token, current directory, and temporary files; then waits for the call to return, storing output and error information from the compiler in the specified strings.
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
Parâmetros
- userToken
- IntPtr
O token com o qual iniciar o processo do compilador.The token to start the compiler process with.
- cmd
- String
O comando a ser executado.The command to execute.
- currentDir
- String
O diretório no qual iniciar o processo.The directory to start the process in.
- tempFiles
- TempFileCollection
Um TempFileCollection com o qual gerenciar e armazenar as referências em arquivos intermediários gerados durante a compilação.A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
Uma referência a uma cadeia de caracteres que armazenará a saída da mensagem do compilador.A reference to a string that will store the compiler's message output.
- errorName
- String
Uma referência a uma cadeia de caracteres que armazenará o nome dos erros encontrados.A reference to a string that will store the name of the error or errors encountered.
Retornos
O valor retornado do compilador.The return value from the compiler.