Mono Class Library: Overview

System.Environment: Members

The members of System.Environment are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
static
CommandLinestring. Gets the information entered on the command line when the current process was started.
static
CurrentDirectorystring. The full path of the current working directory of the process.
static
ExitCodeint (0). Gets or sets the exit code of a process.
[read-only]
static
HasShutdownStartedbool. Gets a value indicating whether an application has started to shut down.
[read-only]
static
MachineNamestring. ReadOnly property for getting the machine name of the computer.
[read-only]
static
NewLinestring. Gets the newline string for the current platform.
[read-only]
static
OSVersionOperatingSystem. Returns a OperatingSystem object that contains details about the current execution platform.
[read-only]
static
ProcessorCountint. Documentation for this section has not yet been entered.
[read-only]
static
StackTracestring. Returns a string representation of the state of the call stack.
[read-only]
static
SystemDirectorystring. Returns the 'System' directory for the Operating System.
[read-only]
static
TickCountint (496190500). Gets the number of milliseconds elapsed since the system was started.
[read-only]
static
UserDomainNamestring. Returns the domain name of the currently user.
[read-only]
static
UserInteractivebool. Documentation for this section has not yet been entered.
[read-only]
static
UserNamestring. Returns the user name the current process is running under.
[read-only]
static
VersionVersion. Gets the current version of the execution engine.
[read-only]
static
WorkingSetlong. Documentation for this section has not yet been entered.

Public Methods

static
Exit(int)
Terminates the current process and sets the process exit code to the specified value.
static
ExpandEnvironmentVariables(string) : string
Expands all the environment variable references in the given string with the value of the environment variable.
static
FailFast(string)
Documentation for this section has not yet been entered.
static
GetCommandLineArgs() : string[]
Returns the arguments specified on the command line.
static
GetEnvironmentVariable(string) : string
Returns the value of the specified environment variable.
static
GetEnvironmentVariable(string, EnvironmentVariableTarget) : string
Documentation for this section has not yet been entered.
static
GetEnvironmentVariables() : IDictionary
Returns all environment variables and their current settings.
static
GetEnvironmentVariables(EnvironmentVariableTarget) : IDictionary
Documentation for this section has not yet been entered.
static
GetFolderPath(Environment.SpecialFolder) : string
Returns the path on the file system corresponding to the special folder.
static
GetLogicalDrives() : string[]
Documentation for this section has not yet been entered.
static
SetEnvironmentVariable(string, string)
Documentation for this section has not yet been entered.
static
SetEnvironmentVariable(string, string, EnvironmentVariableTarget)
Documentation for this section has not yet been entered.