C# Class ZeroInstall.DesktopIntegration.Windows.PathEnv

Manages the PATH environment variable.
Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Get ( bool machineWide ) : string[]

Method Details

AddDir() public static méthode

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.
Résultat void

RemoveDir() public static méthode

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.
Résultat void

Set() public static méthode

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.
Résultat void