Environment::GetEnvironmentVariables Method
.NET Framework (current version)
Retrieves all environment variable names and their values.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | GetEnvironmentVariables() | Retrieves all environment variable names and their values from the current process. |
![]() ![]() | GetEnvironmentVariables(EnvironmentVariableTarget) | Retrieves all environment variable names and their values from the current process, or from the Windows operating system registry key for the current user or local machine. |
Show:

