C# Class WikiFunctions.RegistryUtils

Provides access to the local computer registry below HKEY_CURRENT_USER\Software\AutoWikiBrowser only
Clients should implement their own error handling
Datei anzeigen Open project: reedy/AutoWikiBrowser

Public Methods

Method Description
DeleteSubKey ( string keyNameSuffix ) : void

Deletes a sub key

DeleteSubKey ( string keyNameSuffix, bool throwOnMissingSubKey ) : void

Deletes a sub key

GetValue ( string keyNameSuffix, object defaultValue ) : string

Gets a string value from an AWB registry subkey

GetWritableKey ( string keyNameSuffix ) : RegistryKey

Opens or creates a writable registry key from the AWB registry area

OpenSubKey ( string keyNameSuffix ) : RegistryKey

Opens a read-only registry key from the AWB registry area

SetValue ( string keyNameSuffix, string valueName, string value ) : void

Writes a string value to an AWB registry subkey

Private Methods

Method Description
BuildKeyName ( string keyNameSuffix ) : string

Method Details

DeleteSubKey() public static method

Deletes a sub key
public static DeleteSubKey ( string keyNameSuffix ) : void
keyNameSuffix string
return void

DeleteSubKey() public static method

Deletes a sub key
public static DeleteSubKey ( string keyNameSuffix, bool throwOnMissingSubKey ) : void
keyNameSuffix string
throwOnMissingSubKey bool
return void

GetValue() public static method

Gets a string value from an AWB registry subkey
public static GetValue ( string keyNameSuffix, object defaultValue ) : string
keyNameSuffix string
defaultValue object
return string

GetWritableKey() public static method

Opens or creates a writable registry key from the AWB registry area
public static GetWritableKey ( string keyNameSuffix ) : RegistryKey
keyNameSuffix string
return Microsoft.Win32.RegistryKey

OpenSubKey() public static method

Opens a read-only registry key from the AWB registry area
public static OpenSubKey ( string keyNameSuffix ) : RegistryKey
keyNameSuffix string
return Microsoft.Win32.RegistryKey

SetValue() public static method

Writes a string value to an AWB registry subkey
public static SetValue ( string keyNameSuffix, string valueName, string value ) : void
keyNameSuffix string
valueName string
value string
return void