Environment.GetEnvironmentVariables Method

 

Retrieves all environment variable names and their values.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetEnvironmentVariables()

Retrieves all environment variable names and their values from the current process.

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

Return to top
Show: