C# Class Utility.ModifyRegistry.ModifyRegistry

An useful class to read/write/delete/count registry keys
Mostrar archivo Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
ShowErrorMessage ( Exception e, string Title ) : void

Method Details

DeleteKey() public method

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

DeleteSubKeyTree() public method

To delete a sub key and any child. input: void output: true or false
public DeleteSubKeyTree ( ) : bool
return bool

Read() public method

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

SubKeyCount() public method

Retrive the count of subkeys at the current key. input: void output: number of subkeys
public SubKeyCount ( ) : int
return int

ValueCount() public method

Retrive the count of values in the key. input: void output: number of keys
public ValueCount ( ) : int
return int

Write() public method

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
return bool