RegistryKey.OpenBaseKey(RegistryHive, RegistryView) Metoda

Definice

Otevře nový RegistryKey , který představuje požadovaný klíč na místním počítači se zadaným zobrazením.

public:
 static Microsoft::Win32::RegistryKey ^ OpenBaseKey(Microsoft::Win32::RegistryHive hKey, Microsoft::Win32::RegistryView 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
[<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

Parametry

hKey
RegistryHive

Klíč HKEY, který se má otevřít.

view
RegistryView

Zobrazení registru, které se má použít.

Návraty

Požadovaný klíč registru.

Atributy

Výjimky

hKey nebo view je neplatný.

Uživatel nemá nezbytná oprávnění pro registr.

Uživatel nemá oprávnění potřebná k provedení této akce.

Platí pro