Click or drag to resize
Environment Class
Provides information about, and means to manipulate, the current environment and platform. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  SystemEnvironment

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static class Environment

The Environment type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetFolderPath(EnvironmentSpecialFolder)
Gets the path to the system special folder that is identified by the specified enumeration.
Public methodStatic memberGetFolderPath(EnvironmentSpecialFolder, EnvironmentSpecialFolderOption)
Gets the path to the system special folder that is identified by the specified enumeration, and uses a specified option for accessing special folders.
Top
Properties
  NameDescription
Public propertyStatic memberNewLine
Gets the newline string defined for this environment.
Public propertyStatic memberTickCount
Gets the number of milliseconds elapsed since the system started.
Top
See Also