ComponentSpace Registry Toolkit Class Library Reference

RegistryHelper.GetParentKeyName Method 

Extract the parent key name.

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

Parameters

keyName
The key name.

Return Value

The parent key name.

Remarks

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

Exceptions

Exception Type Condition
RegistryToolkitException Thrown when the registry operation fails.

See Also

RegistryHelper Class | ComponentSpace.RegistryToolkit Namespace