This documentation is archived and is not being maintained.

Environment Methods

The methods of the Environment class are listed here. For a complete list of Environment class members, see the Environment Members topic.

Public Methods

public methodstatic (Shared in Visual Basic)Exit Terminates this process and gives the underlying operating system the specified exit code.
public methodstatic (Shared in Visual Basic)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 methodstatic (Shared in Visual Basic)GetCommandLineArgs Returns a string array containing the command line arguments for the current process.
public methodstatic (Shared in Visual Basic)GetEnvironmentVariable Returns the value of the specified environment variable.
public methodstatic (Shared in Visual Basic)GetEnvironmentVariables Returns all environment variables and their values.
public methodstatic (Shared in Visual Basic)GetFolderPath Gets the path to the system special folder identified by the specified enumeration.
public methodstatic (Shared in Visual Basic)GetLogicalDrives Returns an array of string containing the names of the logical drives on the current computer.

See Also

Environment Class | System Namespace

Show: