← Interactive API Explorer
Namespace: Microsoft.Win32

RegistryKey

Represents a key-level node in the Windows registry. This class is a registry encapsulation.

Methods (3)

RegistryKey OpenSubKey(String,Boolean)
Retrieves a specified subkey, and specifies whether write access is to be applied to the key.
ParameterDescription
nameName or path of the subkey to open.
writableSet to true if you need write access to the key.
Returns: The subkey requested, or null if the operation failed.
String[] GetValueNames
Retrieves an array of strings that contains all the value names associated with this key.
Returns: An array of strings that contains the value names for the current key.
Object GetValue(String)
Retrieves the value associated with the specified name. Returns null if the name/value pair does not exist in the registry.
ParameterDescription
nameThe name of the value to retrieve. This string is not case-sensitive.
Returns: The value associated with name, or null if name is not found.