ComponentSpace Registry Toolkit Class Library Reference

RegistryHelper.GetBaseKeyName Method 

Extract the base key name.

[Visual Basic]
Public Shared Function GetBaseKeyName( _
   ByVal keyName As String _
) As String
[C#]
public static string GetBaseKeyName(
   string keyName
);

Parameters

keyName
The key name.

Return Value

The base key name.

Remarks

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

Exceptions

Exception Type Condition
RegistryToolkitException Thrown when the registry operation fails.

See Also

RegistryHelper Class | ComponentSpace.RegistryToolkit Namespace