Microsoft.Win32.RegistryHive Enumeration

Represents the possible values for a top-level node on a foreign machine.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum RegistryHive

Remarks

RegistryHive values are used by the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method to represent the top-level node of a requested key on a foreign (remote) machine. The node that can be opened with the OpenRemoteBaseKey method must be one of these top-level RegistryKeys. Further access to the subkeys of the identified node is available using using methods in Microsoft.Win32.RegistryKey, so long as the the user has appropriate permission.

Members

Member NameDescription
ClassesRoot

Represents the HKEY_CLASSES_ROOT base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

CurrentConfig

Represents the HKEY_CURRENT_CONFIG base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

CurrentUser

Represents the HKEY_CURRENT_USER base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

DynData

Represents the HKEY_DYN_DATA base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

LocalMachine

Represents the HKEY_LOCAL_MACHINE base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

PerformanceData

Represents the HKEY_PERFORMANCE_DATA base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

Users

Represents the HKEY_USERS base key on another computer. This value can be passed to the RegistryKey.OpenRemoteBaseKey(RegistryHive, string) method, to open this node remotely.

Requirements

Namespace: Microsoft.Win32
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0