Registry: GetSubKey

GetSubKey

Returns a RegistryKey to the full path of the key name.



 Public Function GetSubKey(
	  ByVal KeyName As String,
	  Optional ByVal AutoCreate As Boolean = False,
	  Optional ByVal Writable As Boolean = False ) As RegistryKey

Parameters

KeyName
[ByVal] String. The full registry key path, including the root name.
AutoCreate
[ByVal] Optional. Boolean. Flag to indicate if the full path should be created if it does not exist.  

Default: False

Writable
[ByVal] Optional. Boolean. Flag to indicate if an existing path is writable.  

Default: False

Return Values

RegistryKey -  A RegistryKey to the full path of the key name, or Nothing if the path does not exist.

Remarks

If AutoCreate is true, then Writable is ignored.

See Also

Project VBCorLib Overview Class Registry Overview Registry Properties Registry Methods GetRootKey GetValue