| SimpleExecutionHostStartProcess Method (BenchEnvironment, String, String, String, Boolean, StringBuilder, StringBuilder) |
Starts a Windows process in a synchronous fashion.
Namespace:
Mastersign.Bench
Assembly:
BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax protected virtual Process StartProcess(
BenchEnvironment env,
string cwd,
string exe,
string arguments,
bool collectOutput,
out StringBuilder stdOut,
out StringBuilder errOut
)
Protected Overridable Function StartProcess (
env As BenchEnvironment,
cwd As String,
exe As String,
arguments As String,
collectOutput As Boolean,
<OutAttribute> ByRef stdOut As StringBuilder,
<OutAttribute> ByRef errOut As StringBuilder
) As Process
Parameters
- env
- Type: Mastersign.BenchBenchEnvironment
The environment variables of Bench. - cwd
- Type: SystemString
The working directory, to start the process in. - exe
- Type: SystemString
The path to the executable. - arguments
- Type: SystemString
The string with the command line arguments. - collectOutput
- Type: SystemBoolean
A flag to control, whether the output of the process must be collected. - stdOut
- Type: System.TextStringBuilder
The target for collected output from the standard output stream. - errOut
- Type: System.TextStringBuilder
The target for collected output from the error stream.
Return Value
Type:
ProcessThe started process.
See Also