Registry
Provides RegistryKey objects that represent the root keys in the Windows registry, and static methods to access key/value pairs.
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Win32
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public static class Registry
{
public static readonly RegistryKey ClassesRoot;
public static readonly RegistryKey CurrentConfig;
public static readonly RegistryKey CurrentUser;
public static readonly RegistryKey LocalMachine;
public static readonly RegistryKey PerformanceData;
public static readonly RegistryKey Users;
[System.Runtime.CompilerServices.NullableContext(2)]
public static object GetValue([System.Runtime.CompilerServices.Nullable(1)] string keyName, string valueName, object defaultValue)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static void SetValue(string keyName, [System.Runtime.CompilerServices.Nullable(2)] string valueName, object value)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static void SetValue(string keyName, [System.Runtime.CompilerServices.Nullable(2)] string valueName, object value, RegistryValueKind valueKind)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
}