C# Class VersionOne.ServiceHost.Core.Reg

Exibir arquivo Open project: versionone/VersionOne.Integration.ClearQuest

Public Methods

Method Description
DeleteEmptyKey ( string keyname ) : void

Delete the specified key if it is empty. If that causes its parent key to be empty, continue upwards.

DeleteKey ( string keyname ) : void
DeleteKey ( string keyname, bool deleteemptyparents ) : void

Delete the specified key, including values and all subkeys.

GetSubKeyNames ( string keyname ) : string[]
GetValue ( string keyname, string valuename ) : object

Retrieve a registry value.

GetValueNames ( string keyname ) : string[]
KeyExists ( string keyname ) : bool
SetValue ( string keyname, string valuename, object value ) : object

Sets a new registry value and returns old value

SubKeyCount ( string keyname ) : int

Private Methods

Method Description
GetRootKey ( string rootname ) : RegistryKey
OpenKey ( string keyname, bool create ) : RegistryKey

Method Details

DeleteEmptyKey() public static method

Delete the specified key if it is empty. If that causes its parent key to be empty, continue upwards.
public static DeleteEmptyKey ( string keyname ) : void
keyname string
return void

DeleteKey() public static method

public static DeleteKey ( string keyname ) : void
keyname string
return void

DeleteKey() public static method

Delete the specified key, including values and all subkeys.
public static DeleteKey ( string keyname, bool deleteemptyparents ) : void
keyname string
deleteemptyparents bool
return void

GetSubKeyNames() public static method

public static GetSubKeyNames ( string keyname ) : string[]
keyname string
return string[]

GetValue() public static method

Retrieve a registry value.
public static GetValue ( string keyname, string valuename ) : object
keyname string Full key path
valuename string Name of value. May be empty for key's default value
return object

GetValueNames() public static method

public static GetValueNames ( string keyname ) : string[]
keyname string
return string[]

KeyExists() public static method

public static KeyExists ( string keyname ) : bool
keyname string
return bool

SetValue() public static method

Sets a new registry value and returns old value
public static SetValue ( string keyname, string valuename, object value ) : object
keyname string Full key path
valuename string Name of value. May be empty for key's default value
value object New value. May be null to delete the value.
return object

SubKeyCount() public static method

public static SubKeyCount ( string keyname ) : int
keyname string
return int