|
noexcept |
Gets the environment variables that apply to this process and its child processes.
my_process.start_info().environment().insert({"TempPath", "C:\\Temp"});. You must set the xtd::diagnostics::process_start_info::use_shell_execute property to false to start the process after changing the xtd::diagnostics::process_start_info::environment property. If xtd::diagnostics::process_start_info:use_shell_execute is true, an xtd::invalid_operation_exception is thrown when the xtd::diagnostics::process::start method is called.