Windows Registry

The Windows registry provides a centralized repository where the operating system and applications can store information. The registry is structured hierarchically, with the registry key being the base unit of organization. Registry keys can hold both typed data and subkeys.

Given the changes implemented with .NET, including self-describing assemblies, configuration files, and isolated storage, the importance of the registry is diminished. However, the registry is still a useful service, and the .NET Framework provides direct access to it through a simple set of classes in the Microsoft.Win32 namespace.

The Registry Class

Despite having a hierarchical structure, the registry doesn’t derive from a single root key. Microsoft.Win32.Registry ...

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.