ComponentSpace Registry Toolkit Class Library Reference

RegistryHelper.OpenBaseKey Method (RegistryKey)

Open the key's base key.

[Visual Basic]
Overloads Public Shared Function OpenBaseKey( _
   ByVal registryKey As RegistryKey _
) As RegistryKey
[C#]
public static RegistryKey OpenBaseKey(
   RegistryKey registryKey
);

Parameters

registryKey
The key.

Return Value

The key's base key.

Remarks

For example, if the key is HKEY_LOCAL_MACHINE\Software\Test then the HKEY_LOCAL_MACHINE base key is returned.

Exceptions

Exception Type Condition
RegistryToolkitException Thrown when the registry operation fails.

See Also

RegistryHelper Class | ComponentSpace.RegistryToolkit Namespace | RegistryHelper.OpenBaseKey Overload List