RegistryKey.OpenSubKey Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Retrieves the specified subkey.

Namespace:   Microsoft.Win32
Assembly:  mscorlib (in mscorlib.dll)


Retrieves a subkey as read-only.

System_CAPS_pubmethodOpenSubKey(String, Boolean)

Retrieves a specified subkey, and specifies whether write access is to be applied to the key.

System_CAPS_pubmethodOpenSubKey(String, RegistryKeyPermissionCheck)

Retrieves the specified subkey for read or read/write access.

System_CAPS_pubmethodOpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights)

Retrieves the specified subkey for read or read/write access, requesting the specified access rights.

System_CAPS_pubmethodOpenSubKey(String, RegistryRights)

Retrieves a subkey with the specified name and .

Available starting in .NET Framework 4.6

Return to top