C# Class BlackHole.Slave.Helper.RegistryHelper

Show file Open project: hussein-aitlahcen/BlackHole

Public Methods

Method Description
AddRegistryKeyValue ( RegistryHive hive, string path, string name, string value, bool addQuotes = false ) : bool
DeleteRegistryKeyValue ( RegistryHive hive, string path, string name ) : bool
GetFormattedKeyValues ( this key ) : IEnumerable
GetValueSafe ( this key, string keyName, string defaultValue = "" ) : string
OpenReadonlySubKey ( RegistryHive hive, string path, bool>.Func onSuccess ) : bool
OpenReadonlySubKeySafe ( this key, string name, bool>.Func onSuccess ) : bool
OpenWritableSubKeySafe ( this key, string name, bool>.Func onSuccess ) : bool

Private Methods

Method Description
IsNameOrValueNull ( this keyName, RegistryKey key ) : bool

Method Details

AddRegistryKeyValue() public static method

public static AddRegistryKeyValue ( RegistryHive hive, string path, string name, string value, bool addQuotes = false ) : bool
hive RegistryHive
path string
name string
value string
addQuotes bool
return bool

DeleteRegistryKeyValue() public static method

public static DeleteRegistryKeyValue ( RegistryHive hive, string path, string name ) : bool
hive RegistryHive
path string
name string
return bool

GetFormattedKeyValues() public static method

public static GetFormattedKeyValues ( this key ) : IEnumerable
key this
return IEnumerable

GetValueSafe() public static method

public static GetValueSafe ( this key, string keyName, string defaultValue = "" ) : string
key this
keyName string
defaultValue string
return string

OpenReadonlySubKey() public static method

public static OpenReadonlySubKey ( RegistryHive hive, string path, bool>.Func onSuccess ) : bool
hive RegistryHive
path string
onSuccess bool>.Func
return bool

OpenReadonlySubKeySafe() public static method

public static OpenReadonlySubKeySafe ( this key, string name, bool>.Func onSuccess ) : bool
key this
name string
onSuccess bool>.Func
return bool

OpenWritableSubKeySafe() public static method

public static OpenWritableSubKeySafe ( this key, string name, bool>.Func onSuccess ) : bool
key this
name string
onSuccess bool>.Func
return bool