Registry: GetRootKey

GetRootKey

Returns a root RegistryKey for the key defined in the key name.



 Public Function GetRootKey(
	  ByVal KeyName As String ) As RegistryKey

Parameters

KeyName
[ByVal] String. The keyname path, including the root name at the beginning.

Return Values

RegistryKey -  The root RegistryKey.

Remarks

The KeyName can contain subkeys. The root key name will be parsed out.

See Also

Project VBCorLib Overview Class Registry Overview Registry Properties Registry Methods DynData (get) GetSubKey