Click or drag to resize

RegAccess class

Reads values from the registry.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationEnvironmentRegAccess

Namespace: NetEti.ApplicationEnvironment
Assembly: NetEti.RegAccess (in NetEti.RegAccess.dll) Version: 1.0.0+3058b4495e47cf04ccc2758883ed79dc29ef784f
Syntax
public class RegAccess : IGetStringValue

The RegAccess Type exposes the following members.

Constructors
 NameDescription of the
Public MethodRegAccess Parameterless constructor, sets the RegistryRoot to Default = RegistryRoot.HkeyLocalMachine and calls the parameterised constructor.
Public MethodRegAccess(RegistryRoot) Parameterised structure, expects a RegistryRoot.
Back to the top
Properties
 NameDescription of the
Public PropertyCurrentRegistryRoot The currently set RegistryRoot Default: RegistryRoot.HkeyLocalMachine
Public PropertyDescription Returns a descriptive name of this StringValueGetter, e.g. name plus source path if applicable.
Public PropertyRegistryBasePath Base path in which a setting is searched for in the registry. If the path contains one of the RegistryRoots, e.g. "HKEY_CURRENT_USER", then the internally set RegistryRoot has also been changed. The default for the internally set RegistryRoot is "HKEY_LOCAL_MACHINE". Default: ""
Back to the top
Methods
 NameDescription of the
Public MethodGetStringValue Returns the value of a single parameter (Regedit right). Only applicable for string parameters!
Public MethodGetStringValues Returns an array of the values of a single parameter (Regedit right). Only applicable for REG_MULTI_SZ parameters!
Public MethodGetSubKeyNames Returns the subkeys of RegistryRoot + the transferred keyString (Regedit: left side).
Public MethodGetSubValueNames Returns the parameter names of a key in the registry on the left of on the right-hand side of the registry (Regedit).
Public MethodSetRegistryBasePath Sets the registry access key for all subsequent accesses to the passed base path, if the passed registryBasePath can be converted error-free into a corresponding equivalent from registry keys.
Back to the top
Remarks
File: RegAccess.cs
Author: Erik Nagel, NetEti

08.03.2012 Erik Nagel: created
15 Oct 2017 Erik Nagel: RegistryBasePath introduced.
See also