Environment::SetEnvironmentVariable Method

 

Creates, modifies, or deletes an environment variable.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSetEnvironmentVariable(String^, String^)

Creates, modifies, or deletes an environment variable stored in the current process.

System_CAPS_pubmethodSystem_CAPS_staticSetEnvironmentVariable(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.

Return to top
Show: