Executor.ExecWaitWithCapture Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the specified command.
Overloads
ExecWaitWithCapture(String, TempFileCollection, String, String) |
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) |
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) |
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) |
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)
- Source:
- Executor.cs
- Source:
- Executor.cs
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
Parameters
- cmd
- String
The command to execute.
- tempFiles
- TempFileCollection
A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
A reference to a string that will store the compiler's message output.
- errorName
- String
A reference to a string that will store the name of the error or errors encountered.
Returns
The return value from the compiler.
Applies to
ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)
- Source:
- Executor.cs
- Source:
- Executor.cs
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
Parameters
- userToken
-
IntPtr
nativeint
The token to start the compiler process with.
- cmd
- String
The command to execute.
- tempFiles
- TempFileCollection
A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
A reference to a string that will store the compiler's message output.
- errorName
- String
A reference to a string that will store the name of the error or errors encountered.
Returns
The return value from the compiler.
Remarks
The userToken
parameter accepts a Win32 security access token that indicates the security context for the process to be started in. For more information, see CreateProcessAsUser method documentation.
See also
Applies to
ExecWaitWithCapture(String, String, TempFileCollection, String, String)
- Source:
- Executor.cs
- Source:
- Executor.cs
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
Parameters
- cmd
- String
The command to execute.
- currentDir
- String
The current directory.
- tempFiles
- TempFileCollection
A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
A reference to a string that will store the compiler's message output.
- errorName
- String
A reference to a string that will store the name of the error or errors encountered.
Returns
The return value from the compiler.
See also
Applies to
ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)
- Source:
- Executor.cs
- Source:
- Executor.cs
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
Parameters
- userToken
-
IntPtr
nativeint
The token to start the compiler process with.
- cmd
- String
The command to execute.
- currentDir
- String
The directory to start the process in.
- tempFiles
- TempFileCollection
A TempFileCollection with which to manage and store references to intermediate files generated during compilation.
- outputName
- String
A reference to a string that will store the compiler's message output.
- errorName
- String
A reference to a string that will store the name of the error or errors encountered.
Returns
The return value from the compiler.