RegistryKey: OpenSubKey

OpenSubKey

Returns a RegistryKey of the requested SubKey with the write permission specified.



 Public Function OpenSubKey(
	  ByRef Name As String,
	  Optional ByVal Writable As Boolean = False ) As RegistryKey

Parameters

Name
[ByRef] String. The name of the SubKey to be opened. Any slashes will will be trimmed from both ends.
Writable
[ByVal] Optional. Boolean. The permission to modify the opened SubKey.  

Default: False

Return Values

RegistryKey -  A new RegistryKey of the opened SubKey.

Remarks

The requested SubKey is opened starting at the location of the current RegistryKey node within the Registry.

If the requested SubKey was not found, then Nothing is returned. No error is thrown.

See Also

Project CorLib Overview

Class RegistryKey Overview