Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


RegistryKey.OpenBaseKey(RegistryHive, RegistryView) Method

Definition

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

C#
public static Microsoft.Win32.RegistryKey OpenBaseKey (Microsoft.Win32.RegistryHive hKey, Microsoft.Win32.RegistryView view);
C#
[System.Runtime.InteropServices.ComVisible(false)]
public static Microsoft.Win32.RegistryKey OpenBaseKey (Microsoft.Win32.RegistryHive hKey, Microsoft.Win32.RegistryView view);

Parameters

hKey
RegistryHive

The HKEY to open.

view
RegistryView

The registry view to use.

Returns

The requested registry key.

Attributes

Exceptions

hKey or view is invalid.

The user does not have the necessary registry rights.

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

Applies to

Προϊόν Εκδόσεις
.NET Core 1.0, Core 1.1, 6, 7, 8, 9
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5