GetEnvironmentVariable Method

Environment.GetEnvironmentVariable Method

 

Retrieves the value of an environment variable.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetEnvironmentVariable(String)

Retrieves the value of an environment variable from the current process.

System_CAPS_pubmethodSystem_CAPS_staticGetEnvironmentVariable(String, EnvironmentVariableTarget)

Retrieves the value of an environment variable from the current process or from the Windows operating system registry key for the current user or local machine.

Return to top
Show:
© 2016 Microsoft