C# Class System.Environment.Environment

Afficher le fichier Open project: runefs/Marvin

Private Properties

Свойство Type Description
Environment System.IO
Exit void
FailFast void
GetCommandLineArgs string[]
GetEnvironmentVariableNames string[]
GetEnvironmentVariablesNoCase System.Collections.Hashtable
GetLogicalDrives string[]
GetLogicalDrivesInternal string[]
GetMachineConfigPath string
GetOSVersionString string
GetWindowsFolderPath string
InternalGetFolderPath string
InternalSetEnvironmentVariable void
ReadXdgUserDir string
SetEnvironmentVariable void
SetEnvironmentVariable void
internalBroadcastSettingChange void
internalGetEnvironmentVariable string
internalGetGacPath string
internalGetHome string

Méthodes publiques

Méthode Description
ExpandEnvironmentVariables ( string name ) : string

Substitute environment variables in the argument "name"

GetEnvironmentVariable ( string variable ) : string

Return a string containing the value of the environment variable identifed by parameter "variable"

GetEnvironmentVariable ( string variable, EnvironmentVariableTarget target ) : string
GetEnvironmentVariables ( ) : IDictionary

Return a set of all environment variables and their values

GetEnvironmentVariables ( EnvironmentVariableTarget target ) : IDictionary
GetFolderPath ( SpecialFolder folder ) : string

Returns the fully qualified path of the folder specified by the "folder" parameter

Private Methods

Méthode Description
Environment ( ) : System.IO
Exit ( int exitCode ) : void
FailFast ( string message ) : void
GetCommandLineArgs ( ) : string[]
GetEnvironmentVariableNames ( ) : string[]
GetEnvironmentVariablesNoCase ( ) : Hashtable
GetLogicalDrives ( ) : string[]
GetLogicalDrivesInternal ( ) : string[]
GetMachineConfigPath ( ) : string
GetOSVersionString ( ) : string
GetWindowsFolderPath ( int folder ) : string
InternalGetFolderPath ( SpecialFolder folder ) : string
InternalSetEnvironmentVariable ( string variable, string value ) : void
ReadXdgUserDir ( string config_dir, string home_dir, string key, string fallback ) : string
SetEnvironmentVariable ( string variable, string value ) : void
SetEnvironmentVariable ( string variable, string value, EnvironmentVariableTarget target ) : void
internalBroadcastSettingChange ( ) : void
internalGetEnvironmentVariable ( string variable ) : string
internalGetGacPath ( ) : string
internalGetHome ( ) : string

Method Details

ExpandEnvironmentVariables() public static méthode

Substitute environment variables in the argument "name"
public static ExpandEnvironmentVariables ( string name ) : string
name string
Résultat string

GetEnvironmentVariable() public static méthode

Return a string containing the value of the environment variable identifed by parameter "variable"
public static GetEnvironmentVariable ( string variable ) : string
variable string
Résultat string

GetEnvironmentVariable() public static méthode

public static GetEnvironmentVariable ( string variable, EnvironmentVariableTarget target ) : string
variable string
target EnvironmentVariableTarget
Résultat string

GetEnvironmentVariables() public static méthode

Return a set of all environment variables and their values
public static GetEnvironmentVariables ( ) : IDictionary
Résultat IDictionary

GetEnvironmentVariables() public static méthode

public static GetEnvironmentVariables ( EnvironmentVariableTarget target ) : IDictionary
target EnvironmentVariableTarget
Résultat IDictionary

GetFolderPath() public static méthode

Returns the fully qualified path of the folder specified by the "folder" parameter
public static GetFolderPath ( SpecialFolder folder ) : string
folder SpecialFolder
Résultat string