Mono Class Library: System Namespace

System.Environment Class

Provides the current settings for, and information about, the execution environment. [Edit]

See Also: Environment Members

[System.Runtime.InteropServices.ComVisible(true)]
public static class Environment

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Note:

Use this class to retrieve the following information:

  • Command line arguments
  • Exit codes
  • Environment variable settings
  • Contents of the call stack
  • Time since last system boot
  • Version of the execution engine
[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0