NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Environment Properties

The properties of the Environment class are listed below. For a complete list of Environment class members, see the Environment Members topic.

Public:

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.

See Also

Environment Class | System Namespace