C# Class System.Environment

显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
ExpandEnvironmentVariablesCore string
GetEnvironmentCharArray char[]
GetEnvironmentVariableCore string
GetEnvironmentVariableCore string
GetEnvironmentVariablesCore IDictionary
GetEnvironmentVariablesCore IDictionary
GetFolderPathCore string
GetKnownFolderPath string
SetEnvironmentVariableCore void
SetEnvironmentVariableCore void

Public Methods

Method Description
GetLogicalDrives ( ) : string[]

Private Methods

Method Description
ExpandEnvironmentVariablesCore ( string name ) : string
GetEnvironmentCharArray ( ) : char[]
GetEnvironmentVariableCore ( string variable ) : string
GetEnvironmentVariableCore ( string variable, EnvironmentVariableTarget target ) : string
GetEnvironmentVariablesCore ( ) : IDictionary
GetEnvironmentVariablesCore ( EnvironmentVariableTarget target ) : IDictionary
GetFolderPathCore ( SpecialFolder folder, SpecialFolderOption option ) : string
GetKnownFolderPath ( string folderGuid, SpecialFolderOption option ) : string
SetEnvironmentVariableCore ( string variable, string value ) : void
SetEnvironmentVariableCore ( string variable, string value, EnvironmentVariableTarget target ) : void

Method Details

GetLogicalDrives() public static method

public static GetLogicalDrives ( ) : string[]
return string[]