Utils_RegistryGetKey Method |
Gets a registry key.
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax public static RegistryKey GetKey(
string keyPath,
bool writable,
bool currentUser = false,
bool throwExceptions = false
)
Parameters
- keyPath
- Type: SystemString
Path of the resgitry key. - writable
- Type: SystemBoolean
Set to true if you need write access to the key. - currentUser (Optional)
- Type: SystemBoolean
If set to true uses the CurrentUser hive instead of LocalMachine. - throwExceptions (Optional)
- Type: SystemBoolean
If set to true exception is thrown if key can't be opened.
Return Value
Type:
RegistryKeyRegistryKeySee Also