Creates, modifies, or deletes an environment variable stored in the current process.
Parameters
variable
The name of an environment variable.
value
A value to assign to variable.
Remarks
Calling this method is equivalent to calling the xtd::environment::set_environment_variable(xtd::string, xtd::string, environment_variable_target) overload with a value of xtd::environment_variable_target::process for the target argument.
If the value argument is not empty and the environment variable named by the variable parameter does not exist, the environment variable is created and assigned the contents of value. If it does exist, its value is modified. Because the environment variable is defined in the environment block of the current process only, it does not persist after the process has ended.
If value is empty and the environment variable named by variable exists, the environment variable is deleted. If variable does not exist, no error occurs even though the operation cannot be performed.