The properties of the Environment class are listed below. For a complete list of Environment class members, see the Environment Members topic.
CommandLine | A string holding the command line for this process. |
CurrentDirectory | Gets and sets the current directory. The original directory is the one from which the process was started. |
ExitCode | Gets and sets the exit code of the process. This exit code is used by the Exit method. |
NewLine | Returns the appropriate newline string for the given platform. |
OSVersion | Returns the operating system name, version, and build number. |
StackTrace | Returns stack trace information as a string. |
SystemDirectory | Returns the system directory, for example, C:\WinNT\System32. |
TickCount | The number of milliseconds that have elapsed since the system was started. |
Version | Returns the NGWS frameworks and runtime version and build number. |
WorkingSet | Returns the amount of memory physically mapped to the environment's process context. |