Click or drag to resize

WindowsUtilitiesEnsureSubKey Method

Ensures a registry sub key exists and opens it for write access.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static RegistryKey EnsureSubKey(
	RegistryKey root,
	string name
)

Parameters

root
Type: Microsoft.Win32RegistryKey
The regisry root.
name
Type: SystemString
The registry sub key name or path.

Return Value

Type: RegistryKey
An instance of the RegistryKey class.
Exceptions
ExceptionCondition
ArgumentNullExceptionroot is null or name is null.
See Also