Environment::SetEnvironmentVariable Method
.NET Framework (current version)
Creates, modifies, or deletes an environment variable.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | SetEnvironmentVariable(String^, String^) | Creates, modifies, or deletes an environment variable stored in the current process. |
![]() ![]() | SetEnvironmentVariable(String^, String^, EnvironmentVariableTarget) | Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the current user or local machine. |
Show:

