This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Environment Members
Public:
Properties
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. |
Methods
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
Exit |
Terminates this process with the specified exit code. |
ExpandEnvironmentVariables |
Expands environment-variable strings and replaces them with their defined values. |
GetCommandLineArgs |
Returns an array containing the command line arguments for this process. |
GetEnvironmentVariable |
Gets the specified environment variable. |
GetEnvironmentVariables |
Returns a Dictionary object containing all environment variables and their values. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLogicalDrives |
Retrieves the names of the logical drives on this machine in the form "C:\". |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Fields
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
Environment Class | System Namespace