Export (0) Print
Expand All

Environment Members

Provides information about, and means to manipulate, the current environment and platform. This class cannot be inherited.

The following tables list the members exposed by the Environment type.

  Name Description
Public property Static CommandLine Gets the command line for this process.
Public property Static CurrentDirectory Gets or sets the fully qualified path of the current working directory.
Public property Static ExitCode Gets or sets the exit code of the process.
Public property Static HasShutdownStarted Gets a value indicating whether the common language runtime is shutting down or the current application domain is unloading.
Public property Static MachineName Gets the NetBIOS name of this local computer.
Public property Static NewLine Gets the newline string defined for this environment.
Public property Static Supported by the .NET Compact Framework Supported by the XNA Framework OSVersion Gets an OperatingSystem object that contains the current platform identifier and version number.
Public property Static Supported by the XNA Framework ProcessorCount Gets the number of processors on the current machine.
Public property Static StackTrace Gets current stack trace information.
Public property Static SystemDirectory Gets the fully qualified path of the system directory.
Public property Static Supported by the .NET Compact Framework Supported by the XNA Framework TickCount Gets the number of milliseconds elapsed since the system started.
Public property Static UserDomainName Gets the network domain name associated with the current user.
Public property Static UserInteractive Gets a value indicating whether the current process is running in user interactive mode.
Public property Static UserName Gets the user name of the person who is currently logged on to the Windows operating system.
Public property Static Supported by the .NET Compact Framework Supported by the XNA Framework Version Gets a Version object that describes the major, minor, build, and revision numbers of the common language runtime.
Public property Static WorkingSet Gets the amount of physical memory mapped to the process context.
Top

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static Exit Terminates this process and gives the underlying operating system the specified exit code.
Public method Static ExpandEnvironmentVariables Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.
Public method Static FailFast Terminates a process but does not execute any active try-finally blocks or finalizers.
Public method Static GetCommandLineArgs Returns a string array containing the command-line arguments for the current process.
Public method Static GetEnvironmentVariable Overloaded. Retrieves the value of an environment variable.
Public method Static GetEnvironmentVariables Overloaded. Retrieves all environment variable names and their values.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetFolderPath Gets the path to the system special folder identified by the specified enumeration.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetLogicalDrives Returns an array of string containing the names of the logical drives on the current computer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static SetEnvironmentVariable Overloaded. Creates, modifies, or deletes an environment variable.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft