The configuration set to use when spawning a process.
The configuration object must be fully set before it's used to start a process. Once the process is started any new changes to this object won't affect the behavior of the running process.
Parent Class
Type | Name | Signature |
---|---|---|
method | addEnvArg | public void addEnvArg(string, string) |
method | getEnvArgs | public Map getEnvArgs() |
method | getErrorStream | public Stream getErrorStream() |
method | getInputStream | public Stream getInputStream() |
method | getOutputStream | public Stream getOutputStream() |
method | getWorkingDir | public String getWorkingDir() |
method | isInheritedIO | public bool isInheritedIO() |
method | setErrorStream | public void setErrorStream(System.IO.Stream) |
method | setInheritedIO | public void setInheritedIO(bool) |
method | setInputStream | public void setInputStream(System.IO.Stream) |
method | setOutputStream | public void setOutputStream(System.IO.Stream) |
method | setWorkingDir | public void setWorkingDir(string) |
public void addEnvArg(string key, string value)
Add an environment variable to the process.
Parameters
public Map getEnvArgs()
Get a map which contains all environment variables, with their names as the key.
Returns
public Stream getErrorStream()
Get the output stream which was set by setErrorStream().
Returns
public Stream getInputStream()
Get the input stream which was set by setInputStream().
Returns
public Stream getOutputStream()
Get the output stream which was set by setOutputStream().
Returns
public String getWorkingDir()
Get working directory of the process.
Returns
public bool isInheritedIO()
Get if the process is inheriting the I/O channels from the parent process.
Returns
public void setErrorStream(Stream stream)
Set an output stream to be used as the standard error from within the process.
Setting this value will overwrite the inherited standard error stream by setting inherited IO.
Parameters
public void setInheritedIO(bool shouldInherit)
Set if the process will inherit the I/O channels from the parent process.
If inheriting, the process simply directs its standard I/O to the corresponding channels used by the parent process. However, this behavior can be overwritten by explicitly setting a stream to a particular channel, such as setInputStream.
If intending to redirect I/O from the current process, i.e. programmatically write to the process's input and read from the output, must not set this to true.
Parameters
public void setInputStream(Stream stream)
Set an input stream to be used as the standard input from within the process.
Setting this value will overwrite the inherited standard input stream by setting inherited IO.
Parameters
public void setOutputStream(Stream stream)
Set an output stream to be used as the standard output from within the process.
Setting this value will overwrite the inherited standard output stream by setting inherited IO.
Parameters
public void setWorkingDir(string dir)
Set working directory of the process. If not set, the process will use default working directory, which is determined by the underlying OS. The working directory is used as the base directory for file system operations using a relative path.
Parameters