RegistryKey
Represents a key-level node in the Windows registry. This class is a registry encapsulation.
using Microsoft.Win32.SafeHandles;
using System;
using System.Runtime.CompilerServices;
using System.Security.AccessControl;
namespace Microsoft.Win32
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class RegistryKey : MarshalByRefObject, IDisposable
{
public SafeRegistryHandle Handle {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public string Name {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public int SubKeyCount {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public int ValueCount {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public RegistryView View {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
internal RegistryKey()
{
}
public void Close()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, RegistryOptions registryOptions, [System.Runtime.CompilerServices.Nullable(2)] RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, RegistryKeyPermissionCheck permissionCheck, [System.Runtime.CompilerServices.Nullable(2)] RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, bool writable)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistryKey CreateSubKey(string subkey, bool writable, RegistryOptions options)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteSubKey(string subkey)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteSubKey(string subkey, bool throwOnMissingSubKey)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteSubKeyTree(string subkey)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteSubKeyTree(string subkey, bool throwOnMissingSubKey)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteValue(string name)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void DeleteValue(string name, bool throwOnMissingValue)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void Dispose()
{
}
public void Flush()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static RegistryKey FromHandle(SafeRegistryHandle handle)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static RegistryKey FromHandle(SafeRegistryHandle handle, RegistryView view)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistrySecurity GetAccessControl()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public RegistrySecurity GetAccessControl(AccessControlSections includeSections)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public string[] GetSubKeyNames()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[System.Runtime.CompilerServices.NullableContext(2)]
public object GetValue(string name)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[System.Runtime.CompilerServices.NullableContext(2)]
public object GetValue(string name, object defaultValue)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[System.Runtime.CompilerServices.NullableContext(2)]
public object GetValue(string name, object defaultValue, RegistryValueOptions options)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[System.Runtime.CompilerServices.NullableContext(2)]
public RegistryValueKind GetValueKind(string name)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public string[] GetValueNames()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static RegistryKey OpenBaseKey(RegistryHive hKey, RegistryView view)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, string machineName)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public static RegistryKey OpenRemoteBaseKey(RegistryHive hKey, string machineName, RegistryView view)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[return: System.Runtime.CompilerServices.Nullable(2)]
public RegistryKey OpenSubKey(string name)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[return: System.Runtime.CompilerServices.Nullable(2)]
public RegistryKey OpenSubKey(string name, RegistryKeyPermissionCheck permissionCheck)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[return: System.Runtime.CompilerServices.Nullable(2)]
public RegistryKey OpenSubKey(string name, RegistryKeyPermissionCheck permissionCheck, RegistryRights rights)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[return: System.Runtime.CompilerServices.Nullable(2)]
public RegistryKey OpenSubKey(string name, bool writable)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
[return: System.Runtime.CompilerServices.Nullable(2)]
public RegistryKey OpenSubKey(string name, RegistryRights rights)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void SetAccessControl(RegistrySecurity registrySecurity)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void SetValue([System.Runtime.CompilerServices.Nullable(2)] string name, object value)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void SetValue([System.Runtime.CompilerServices.Nullable(2)] string name, object value, RegistryValueKind valueKind)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public override string ToString()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
}