Click or drag to resize

WindowsUtilitiesEnsureSubKey Method

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

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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