RegistryKey.OpenBaseKey(RegistryHive, RegistryView) RegistryKey.OpenBaseKey(RegistryHive, RegistryView) RegistryKey.OpenBaseKey(RegistryHive, RegistryView) Method

Definition

Opens a new RegistryKey that represents the requested key on the local machine with the specified view.

public:
 static Microsoft::Win32::RegistryKey ^ OpenBaseKey(Microsoft::Win32::RegistryHive hKey, Microsoft::Win32::RegistryView view);
[System.Runtime.InteropServices.ComVisible(false)]
public static Microsoft.Win32.RegistryKey OpenBaseKey (Microsoft.Win32.RegistryHive hKey, Microsoft.Win32.RegistryView view);
Public Shared Function OpenBaseKey (hKey As RegistryHive, view As RegistryView) As RegistryKey
Parameters
hKey
RegistryHive RegistryHive RegistryHive

The HKEY to open.

view
RegistryView RegistryView RegistryView

The registry view to use.

Returns

The requested registry key.

Exceptions

The user does not have the necessary registry rights.

The user does not have the permissions required to perform this action.

Applies to