C# Класс VersionOne.ServiceHost.Core.Reg

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetRootKey ( string rootname ) : RegistryKey
OpenKey ( string keyname, bool create ) : RegistryKey

Описание методов

DeleteEmptyKey() публичный статический Метод

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
Результат void

DeleteKey() публичный статический Метод

public static DeleteKey ( string keyname ) : void
keyname string
Результат void

DeleteKey() публичный статический Метод

Delete the specified key, including values and all subkeys.
public static DeleteKey ( string keyname, bool deleteemptyparents ) : void
keyname string
deleteemptyparents bool
Результат void

GetSubKeyNames() публичный статический Метод

public static GetSubKeyNames ( string keyname ) : string[]
keyname string
Результат string[]

GetValue() публичный статический Метод

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
Результат object

GetValueNames() публичный статический Метод

public static GetValueNames ( string keyname ) : string[]
keyname string
Результат string[]

KeyExists() публичный статический Метод

public static KeyExists ( string keyname ) : bool
keyname string
Результат bool

SetValue() публичный статический Метод

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.
Результат object

SubKeyCount() публичный статический Метод

public static SubKeyCount ( string keyname ) : int
keyname string
Результат int