RegistryKey.OpenBaseKey(RegistryHive, RegistryView) 方法

定義

使用指定的檢視,開啟本機電腦上表示要求機碼的新 RegistryKey

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

參數

hKey
RegistryHive

要開啟的 HKEY。

view
RegistryView

要使用的登錄檢視。

傳回

要求的登錄機碼。

屬性

例外狀況

hKeyview 無效。

使用者沒有必要的登錄權限。

使用者沒有執行此動作所需的權限。

適用於