C# Класс Utility.ModifyRegistry.ModifyRegistry

An useful class to read/write/delete/count registry keys
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DeleteKey ( string KeyName ) : bool

To delete a registry key. input: KeyName (string) output: true or false

DeleteSubKeyTree ( ) : bool

To delete a sub key and any child. input: void output: true or false

Read ( string KeyName ) : string

To read a registry key. input: KeyName (string) output: value (string)

SubKeyCount ( ) : int

Retrive the count of subkeys at the current key. input: void output: number of subkeys

ValueCount ( ) : int

Retrive the count of values in the key. input: void output: number of keys

Write ( string KeyName, object Value ) : bool

To write into a registry key. input: KeyName (string) , Value (object) output: true or false

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

Метод Описание
ShowErrorMessage ( Exception e, string Title ) : void

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

DeleteKey() публичный Метод

To delete a registry key. input: KeyName (string) output: true or false
public DeleteKey ( string KeyName ) : bool
KeyName string
Результат bool

DeleteSubKeyTree() публичный Метод

To delete a sub key and any child. input: void output: true or false
public DeleteSubKeyTree ( ) : bool
Результат bool

Read() публичный Метод

To read a registry key. input: KeyName (string) output: value (string)
public Read ( string KeyName ) : string
KeyName string
Результат string

SubKeyCount() публичный Метод

Retrive the count of subkeys at the current key. input: void output: number of subkeys
public SubKeyCount ( ) : int
Результат int

ValueCount() публичный Метод

Retrive the count of values in the key. input: void output: number of keys
public ValueCount ( ) : int
Результат int

Write() публичный Метод

To write into a registry key. input: KeyName (string) , Value (object) output: true or false
public Write ( string KeyName, object Value ) : bool
KeyName string
Value object
Результат bool