261 references to RegistryKey
IIS.FunctionalTests (5)
IIS.LongTests (6)
IIS.NewHandler.FunctionalTests (6)
IIS.NewShim.FunctionalTests (6)
IIS.ShadowCopy.Tests (4)
IISExpress.FunctionalTests (5)
Microsoft.AspNetCore.DataProtection (21)
Microsoft.AspNetCore.DataProtection.Tests (13)
Microsoft.AspNetCore.InternalTesting.Tests (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.Build (21)
Evaluation\IntrinsicFunctions.cs (11)
297using (RegistryKey key = GetBaseKeyFromKeyName(keyName, view, out string subKeyName))
301using (RegistryKey subKey = key.OpenSubKey(subKeyName, false))
735private static RegistryKey GetBaseKeyFromKeyName(string keyName, RegistryView view, out string subKeyName)
753RegistryKey basekey = null;
758basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, view);
761basekey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, view);
764basekey = RegistryKey.OpenBaseKey(RegistryHive.ClassesRoot, view);
767basekey = RegistryKey.OpenBaseKey(RegistryHive.Users, view);
770basekey = RegistryKey.OpenBaseKey(RegistryHive.PerformanceData, view);
773basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentConfig, view);
777basekey = RegistryKey.OpenBaseKey(RegistryHive.DynData, view);
Microsoft.Build.CommandLine.UnitTests (10)
Microsoft.Build.Engine (22)
Engine\IntrinsicFunctions.cs (11)
201using (RegistryKey key = GetBaseKeyFromKeyName(keyName, view, out subKeyName))
205using (RegistryKey subKey = key.OpenSubKey(subKeyName, false))
333private static RegistryKey GetBaseKeyFromKeyName(string keyName, RegistryView view, out string subKeyName)
351RegistryKey basekey = null;
356basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, view);
359basekey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, view);
362basekey = RegistryKey.OpenBaseKey(RegistryHive.ClassesRoot, view);
365basekey = RegistryKey.OpenBaseKey(RegistryHive.Users, view);
368basekey = RegistryKey.OpenBaseKey(RegistryHive.PerformanceData, view);
371basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentConfig, view);
374basekey = RegistryKey.OpenBaseKey(RegistryHive.DynData, view);
Microsoft.Build.Engine.UnitTests (10)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (33)
Microsoft.Build.Tasks.UnitTests (7)
Microsoft.Build.Utilities.Core (15)
Microsoft.VisualBasic.Core (5)
Microsoft.Win32.Registry (23)
artifacts\obj\Microsoft.Win32.Registry\Debug\net9.0\Microsoft.Win32.Registry.notsupported.cs (23)
11public static readonly Microsoft.Win32.RegistryKey ClassesRoot;
12public static readonly Microsoft.Win32.RegistryKey CurrentConfig;
13public static readonly Microsoft.Win32.RegistryKey CurrentUser;
14public static readonly Microsoft.Win32.RegistryKey LocalMachine;
15public static readonly Microsoft.Win32.RegistryKey PerformanceData;
16public static readonly Microsoft.Win32.RegistryKey Users;
39public Microsoft.Win32.RegistryKey CreateSubKey(string subkey) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
40public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
41public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, Microsoft.Win32.RegistryOptions registryOptions) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
42public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, Microsoft.Win32.RegistryOptions registryOptions, System.Security.AccessControl.RegistrySecurity? registrySecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
43public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistrySecurity? registrySecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
44public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, bool writable) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
45public Microsoft.Win32.RegistryKey CreateSubKey(string subkey, bool writable, Microsoft.Win32.RegistryOptions options) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
54public static Microsoft.Win32.RegistryKey FromHandle(Microsoft.Win32.SafeHandles.SafeRegistryHandle handle) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
55public static Microsoft.Win32.RegistryKey FromHandle(Microsoft.Win32.SafeHandles.SafeRegistryHandle handle, Microsoft.Win32.RegistryView view) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
66public static Microsoft.Win32.RegistryKey OpenBaseKey(Microsoft.Win32.RegistryHive hKey, Microsoft.Win32.RegistryView view) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
67public static Microsoft.Win32.RegistryKey OpenRemoteBaseKey(Microsoft.Win32.RegistryHive hKey, string machineName) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
68public static Microsoft.Win32.RegistryKey OpenRemoteBaseKey(Microsoft.Win32.RegistryHive hKey, string machineName, Microsoft.Win32.RegistryView view) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
69public Microsoft.Win32.RegistryKey? OpenSubKey(string name) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
70public Microsoft.Win32.RegistryKey? OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
71public Microsoft.Win32.RegistryKey? OpenSubKey(string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistryRights rights) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
72public Microsoft.Win32.RegistryKey? OpenSubKey(string name, bool writable) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
73public Microsoft.Win32.RegistryKey? OpenSubKey(string name, System.Security.AccessControl.RegistryRights rights) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry); }
Microsoft.Win32.Registry.AccessControl (3)
MSBuildTaskHost (1)
mscorlib (1)
PresentationCore (9)
PresentationFramework (23)
PresentationUI (3)
SignalR.Client.FunctionalTestApp (1)