Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
Microsoft Developer Network
Home
Library
Learn
Samples
Downloads
Support
Community
Forums
Classic
  |  
Lightweight
  |  
ScriptFree
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 2.0
Please Wait
Class Library Reference
Please Wait
System
Please Wait
Environment Class
Please Wait
Environment Methods
Please Wait
GetEnvironmentVariable Method
Please Wait
Collapse All
Expand All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
.NET Framework 3.0
Microsoft Visual Studio 2008/.NET Framework 3.5
Microsoft Visual Studio 2010/.NET Framework 4
Microsoft Visual Studio 11/.NET Framework 4.5
.NET Framework Class Library
Environment.GetEnvironmentVariable Method
Retrieves the value of an environment variable.
Overload List
Name
Description
Environment.GetEnvironmentVariable (String)
Retrieves the value of an environment variable from the current process.
Environment.GetEnvironmentVariable (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.
See Also
Reference
Environment Class
Environment Members
System Namespace
GetEnvironmentVariables
SetEnvironmentVariable
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2012 Microsoft. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement