C# Class Utility.ModifyRegistry.ModifyRegistry

An useful class to read/write/delete/count registry keys
Afficher le fichier Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Méthodes publiques

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

Méthode Description
ShowErrorMessage ( Exception e, string Title ) : void

Method Details

DeleteKey() public méthode

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

DeleteSubKeyTree() public méthode

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

Read() public méthode

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

SubKeyCount() public méthode

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

ValueCount() public méthode

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

Write() public méthode

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
Résultat bool