Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
System
Environment Class
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
Environment Properties

The Environment type exposes the following members.

  NameDescription
Public propertyStatic memberCommandLineGets the command line for this process.
Public propertyStatic memberCurrentDirectoryGets or sets the fully qualified path of the current working directory.
Public propertyStatic memberExitCodeGets or sets the exit code of the process.
Public propertyStatic memberHasShutdownStartedGets a value indicating whether the common language runtime (CLR) is shutting down.
Public propertyStatic memberIs64BitOperatingSystemDetermines whether the current operating system is a 64-bit operating system.
Public propertyStatic memberIs64BitProcessDetermines whether the current process is a 64-bit process.
Public propertyStatic memberMachineNameGets the NetBIOS name of this local computer.
Public propertyStatic memberNewLineGets the newline string defined for this environment.
Public propertyStatic memberOSVersionGets an OperatingSystem object that contains the current platform identifier and version number.
Public propertyStatic memberProcessorCountGets the number of processors on the current machine.
Public propertyStatic memberStackTraceGets current stack trace information.
Public propertyStatic memberSystemDirectoryGets the fully qualified path of the system directory.
Public propertyStatic memberSystemPageSizeGets the amount of memory for an operating system's page file.
Public propertyStatic memberTickCountGets the number of milliseconds elapsed since the system started.
Public propertyStatic memberUserDomainNameGets the network domain name associated with the current user.
Public propertyStatic memberUserInteractiveGets a value indicating whether the current process is running in user interactive mode.
Public propertyStatic memberUserNameGets the user name of the person who is currently logged on to the Windows operating system.
Public propertyStatic memberVersionGets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
Public propertyStatic memberWorkingSetGets the amount of physical memory mapped to the process context.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker