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

Definición

Abre un nuevo RegistryKey que representa la clave solicitada en el equipo local con la vista especificada.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);
static member OpenBaseKey : Microsoft.Win32.RegistryHive * Microsoft.Win32.RegistryView -> Microsoft.Win32.RegistryKey
Public Shared Function OpenBaseKey (hKey As RegistryHive, view As RegistryView) As RegistryKey

Parámetros

hKey
RegistryHive RegistryHive RegistryHive RegistryHive

HKEY que se va a abrir.The HKEY to open.

view
RegistryView RegistryView RegistryView RegistryView

Vista del Registro que se va a usar.The registry view to use.

Devoluciones

Clave del Registro solicitada.The requested registry key.

Excepciones

hKey o view no es válido.hKey or view is invalid.

El usuario no tiene los derechos necesarios en el registro.The user does not have the necessary registry rights.

El usuario no tiene los permisos necesarios para realizar esta acción.The user does not have the permissions required to perform this action.

Se aplica a