C# Class ZeroInstall.DesktopIntegration.Windows.PathEnv

Manages the PATH environment variable.
ファイルを表示 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
AddDir ( [ directory, bool machineWide ) : void

Adds a directory to the search PATH.

RemoveDir ( [ directory, bool machineWide ) : void

Removes a directory from the search PATH.

Set ( [ directories, bool machineWide ) : void

Sets the current search PATH.

Private Methods

Method Description
Get ( bool machineWide ) : string[]

Method Details

AddDir() public static method

Adds a directory to the search PATH.
public static AddDir ( [ directory, bool machineWide ) : void
directory [ The directory to add to the search PATH.
machineWide bool true to use the machine-wide PATH variable; false for the per-user variant.
return void

RemoveDir() public static method

Removes a directory from the search PATH.
public static RemoveDir ( [ directory, bool machineWide ) : void
directory [ The directory to remove from the search PATH.
machineWide bool true to use the machine-wide PATH variable; false for the per-user variant.
return void

Set() public static method

Sets the current search PATH.
public static Set ( [ directories, bool machineWide ) : void
directories [ The individual directories to list in the search PATH.
machineWide bool true to use the machine-wide PATH variable; false for the per-user variant.
return void