Microsoft.Win32.RegistryView Enumeration

Specifies which registry view to target on a 64-bit operating system.

Syntax

public enum RegistryView

Remarks

On the 64-bit version of Windows, portions of the registry are stored separately for 32-bit and 64-bit applications. There is a 32-bit view for 32-bit applications and a 64-bit view for 64-bit applications.

You can specify a registry view when you use the RegistryKey.OpenBaseKey(RegistryHive, RegistryView) and RegistryKey.OpenRemoteBaseKey(RegistryHive, string, RegistryView) methods, and the RegistryKey.FromHandle(Microsoft.Win32.SafeHandles.SafeRegistryHandle, RegistryView) property on a Microsoft.Win32.RegistryKey object.

If you request a 64-bit view on a 32-bit operating system, the returned keys will be in the 32-bit view.

Members

Member NameDescription
Default

The default view.

Registry32

The 32-bit view.

Registry64

The 64-bit view.

Requirements

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