📖existsVariable

bool existsVariable(RegistryKey key, string keyName, string varName);

key - Корневой ключ (Выбирайте с помощью "Registry". Например: "Registry.LocalMachine")

keyName - Название под-ключа

varName - Название переменной в под-ключе

circle-exclamation

Возврат:

true или false. true - Если переменная существует, false - Если переменная НЕ существует

Пример:

bool exists = MultiAPI.RegEdit.existsVariable(Registry.LocalMachine, "keeeeey", "variable");
bool exists = MultiAPI.RegEdit.existsVariable(Registry.LocalMachine, "keeeeey", "variable");
Console.WriteLine(exists);

Описание:

Проверяет, существует ли переменная

Исключения:

Исключения: 0x00003

Обработка: Исключенияarrow-up-right

Код:

Last updated

Was this helpful?