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 4
Please Wait
.NET Framework Class Library
Please Wait
System
Please Wait
Environment Class
Please Wait
Environment Properties
Please Wait
Collapse All
Expand All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2008/.NET Framework 3.5
Microsoft Silverlight
Microsoft Visual Studio 11/.NET Framework 4.5
.NET Framework Class Library
Environment Properties
The
Environment
type exposes the following members.
Properties
Name
Description
CommandLine
Gets the command line for this process.
CurrentDirectory
Gets or sets the fully qualified path of the current working directory.
ExitCode
Gets or sets the exit code of the process.
HasShutdownStarted
Gets a value indicating whether the common language runtime (CLR) is shutting down.
Is64BitOperatingSystem
Determines whether the current operating system is a 64-bit operating system.
Is64BitProcess
Determines whether the current process is a 64-bit process.
MachineName
Gets the NetBIOS name of this local computer.
NewLine
Gets the newline string defined for this environment.
OSVersion
Gets an
OperatingSystem
object that contains the current platform identifier and version number.
ProcessorCount
Gets the number of processors on the current machine.
StackTrace
Gets current stack trace information.
SystemDirectory
Gets the fully qualified path of the system directory.
SystemPageSize
Gets the amount of memory for an operating system's page file.
TickCount
Gets the number of milliseconds elapsed since the system started.
UserDomainName
Gets the network domain name associated with the current user.
UserInteractive
Gets a value indicating whether the current process is running in user interactive mode.
UserName
Gets the user name of the person who is currently logged on to the Windows operating system.
Version
Gets a
Version
object that describes the major, minor, build, and revision numbers of the common language runtime.
WorkingSet
Gets the amount of physical memory mapped to the process context.
Top
See Also
Reference
Environment Class
System Namespace
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