C# Class NSoft.NFramework.Nini.Config.RegistryConfigSource

Inheritance: ConfigSourceBase
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
AddConfig ( string name ) : IConfig
AddConfig ( string name, RegistryKey key ) : IConfig
AddMapping ( RegistryKey registryKey, string path ) : void
AddMapping ( RegistryKey registryKey, string path, RegistryRecurse recurse ) : void
RegistryConfigSource ( ) : System
Reload ( ) : void
Save ( ) : void

Private Methods

Method Description
LoadKeyValues ( RegistryKey key, string keyName ) : void

Loads all values from the registry key.

MergeConfigsIntoDocument ( ) : void

Merges all of the configs from the config collection into the registry.

ReloadKeys ( ) : void

Reloads all keys.

RemoveKeys ( RegistryConfig config ) : void

Removes all keys not present in the current config.

ShortKeyName ( RegistryKey key ) : string

Returns the key name without the fully qualified path. e.g. no HKEY_LOCAL_MACHINE\\MyKey, just MyKey

Method Details

AddConfig() public method

public AddConfig ( string name ) : IConfig
name string
return IConfig

AddConfig() public method

public AddConfig ( string name, RegistryKey key ) : IConfig
name string
key Microsoft.Win32.RegistryKey
return IConfig

AddMapping() public method

public AddMapping ( RegistryKey registryKey, string path ) : void
registryKey Microsoft.Win32.RegistryKey
path string
return void

AddMapping() public method

public AddMapping ( RegistryKey registryKey, string path, RegistryRecurse recurse ) : void
registryKey Microsoft.Win32.RegistryKey
path string
recurse RegistryRecurse
return void

RegistryConfigSource() public method

public RegistryConfigSource ( ) : System
return System

Reload() public method

public Reload ( ) : void
return void

Save() public method

public Save ( ) : void
return void