C# Класс ZeroInstall.DesktopIntegration.Windows.PathEnv

Manages the PATH environment variable.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Get ( bool machineWide ) : string[]

Описание методов

AddDir() публичный статический Метод

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.
Результат void

RemoveDir() публичный статический Метод

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.
Результат void

Set() публичный статический Метод

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.
Результат void