RegistryKey.OpenBaseKey(RegistryHive, RegistryView) Metodo

Definizione

Apre un nuovo RegistryKey oggetto che rappresenta la chiave richiesta nel computer locale con la visualizzazione specificata.

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);
[<System.Runtime.InteropServices.ComVisible(false)>]
static member OpenBaseKey : Microsoft.Win32.RegistryHive * Microsoft.Win32.RegistryView -> Microsoft.Win32.RegistryKey
Public Shared Function OpenBaseKey (hKey As RegistryHive, view As RegistryView) As RegistryKey

Parametri

hKey
RegistryHive

HKEY da aprire.

view
RegistryView

Visualizzazione del Registro di sistema da utilizzare.

Valori restituiti

Chiave del Registro di sistema richiesta.

Attributi

Eccezioni

hKey o view non è valido.

L'utente non dispone dei diritti del Registro di sistema necessari.

L'utente non dispone delle autorizzazioni necessarie per eseguire questa azione.

Si applica a