282 references to RegistryKey
IIS.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
28using var key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\services\HTTP\Parameters");
IIS.LongTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
140using (var localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
IIS.NewHandler.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
140using (var localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
IIS.NewShim.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
140using (var localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
101var iisRegistryKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", writable: false);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\TestRegistryKey.cs (3)
11private readonly RegistryKey _baseHive; 12private readonly RegistryKey _subKey; 15public TestRegistryKey(RegistryKey baseHive, string keyName, string valueName, object value)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
140using (var localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
Microsoft.AspNetCore.DataProtection (23)
DataProtectionBuilderExtensions.cs (1)
192public static IDataProtectionBuilder PersistKeysToRegistry(this IDataProtectionBuilder builder, RegistryKey registryKey)
KeyManagement\XmlKeyManager.cs (1)
690RegistryKey? regKeyStorageKey = null;
LoggingExtensions.cs (3)
158public static partial void ReadingDataFromRegistryKeyValue(this ILogger logger, RegistryKey registryKeyName, string value); 266public static partial void RemovingDataFromRegistryKeyValue(this ILogger logger, RegistryKey registryKeyName, string value); 269public static partial void FailedToRemoveDataFromRegistryKeyValue(this ILogger logger, RegistryKey registryKeyName, string valueName, Exception exception);
RegistryPolicyResolver.cs (8)
25private readonly Func<RegistryKey?> _getPolicyRegKey; 34internal RegistryPolicyResolver(RegistryKey policyRegKey, IActivator activator) 40private static List<string> ReadKeyEscrowSinks(RegistryKey key) 65using (var registryKey = _getPolicyRegKey()) 71private RegistryPolicy? ResolvePolicyCore(RegistryKey? policyRegKey) 114private static CngCbcAuthenticatedEncryptorConfiguration GetCngCbcAuthenticatedEncryptorConfiguration(RegistryKey key) 150private static CngGcmAuthenticatedEncryptorConfiguration GetCngGcmAuthenticatedEncryptorConfiguration(RegistryKey key) 174private static ManagedAuthenticatedEncryptorConfiguration GetManagedAuthenticatedEncryptorConfiguration(RegistryKey key)
Repositories\RegistryXmlRepository.cs (10)
23private static readonly Lazy<RegistryKey?> _defaultRegistryKeyLazy = new Lazy<RegistryKey?>(GetDefaultHklmStorageKey); 32public RegistryXmlRepository(RegistryKey registryKey, ILoggerFactory loggerFactory) 48public static RegistryKey? DefaultRegistryKey => _defaultRegistryKeyLazy.Value; 53public RegistryKey RegistryKey { get; } 80private static RegistryKey? GetDefaultHklmStorageKey() 86using (var hklmBaseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView)) 96var aspnetBaseKey = hklmBaseKey.OpenSubKey(aspnetAutoGenKeysBaseKeyName, writable: true); 127private XElement? ReadElementFromRegKey(RegistryKey regKey, string valueName)
Microsoft.AspNetCore.DataProtection.Tests (13)
Internal\KeyManagementOptionsSetupTest.cs (4)
99private static void WithUniqueTempRegKey(Action<RegistryKey> testCode) 102var uniqueSubkey = LazyHkcuTempKey.Value.CreateSubKey(uniqueName); 114private static readonly Lazy<RegistryKey> LazyHkcuTempKey = new Lazy<RegistryKey>(() =>
RegistryPolicyResolverTests.cs (4)
271private static RegistryPolicy WithUniqueTempRegKey(Func<RegistryKey, RegistryPolicy> testCode) 274var uniqueSubkey = LazyHkcuTempKey.Value.CreateSubKey(uniqueName); 286private static readonly Lazy<RegistryKey> LazyHkcuTempKey = new Lazy<RegistryKey>(() =>
Repositories\RegistryXmlRepositoryTests.cs (5)
25var retVal = repository.RegistryKey; 222private static void WithUniqueTempRegKey(Action<RegistryKey> testCode) 225var uniqueSubkey = LazyHkcuTempKey.Value.CreateSubKey(uniqueName); 237private static readonly Lazy<RegistryKey> LazyHkcuTempKey = new Lazy<RegistryKey>(() =>
Microsoft.AspNetCore.InternalTesting.Tests (4)
MaximumOSVersionTest.cs (2)
42var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); 55var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
MinimumOSVersionTest.cs (2)
41var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"); 54var versionKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\TransportTestHelpers\HttpSysHttp3SupportedAttribute.cs (1)
28using var key = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\services\HTTP\Parameters");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
src\SignalR\common\Shared\TestCertificates.cs (1)
18var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
Microsoft.Build (21)
Evaluation\IntrinsicFunctions.cs (11)
304using (RegistryKey key = GetBaseKeyFromKeyName(keyName, view, out string subKeyName)) 308using (RegistryKey subKey = key.OpenSubKey(subKeyName, false)) 774private static RegistryKey GetBaseKeyFromKeyName(string keyName, RegistryView view, out string subKeyName) 792RegistryKey basekey = null; 797basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, view); 800basekey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, view); 803basekey = RegistryKey.OpenBaseKey(RegistryHive.ClassesRoot, view); 806basekey = RegistryKey.OpenBaseKey(RegistryHive.Users, view); 809basekey = RegistryKey.OpenBaseKey(RegistryHive.PerformanceData, view); 812basekey = RegistryKey.OpenBaseKey(RegistryHive.CurrentConfig, view); 816basekey = RegistryKey.OpenBaseKey(RegistryHive.DynData, view);
FrameworkLocationHelper.cs (3)
1145using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView)) 1146using (RegistryKey subKey = baseKey.OpenSubKey(registryBaseKeyName))
Utilities\RegistryKeyWrapper.cs (7)
25private RegistryKey _wrappedKey; 27private RegistryKey _registryHive; 40protected RegistryKeyWrapper(RegistryKey wrappedKey, RegistryKey registryHive) 60: this(registryKeyPath, RegistryKey.OpenBaseKey(registryHive, registryView)) 67internal RegistryKeyWrapper(string registryKeyPath, RegistryKey registryHive) 201private RegistryKey WrappedKey
Microsoft.Build.CommandLine.UnitTests (10)
RegistryDelegates.cs (3)
12internal delegate RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view); 21internal delegate IEnumerable<string> GetRegistrySubKeyNames(RegistryKey baseKey, string subKey); 30internal delegate string GetRegistrySubKeyDefaultValue(RegistryKey baseKey, string subKey);
RegistryHelper.cs (7)
22internal static IEnumerable<string>? GetSubKeyNames(RegistryKey baseKey, string subkey) 26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 43internal static string? GetDefaultValue(RegistryKey baseKey, string subkey) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey)) 65internal static RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view) 67RegistryKey key = RegistryKey.OpenBaseKey(hive, view);
Microsoft.Build.Engine.UnitTests (10)
Evaluation\Expander_Tests.cs (10)
1794RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1816RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1841RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1864RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1886RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1908RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3818RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3842RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3866RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3890RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test");
Microsoft.Build.Framework (3)
EncodingUtilities.cs (1)
302using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
NativeMethods.cs (2)
648using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY)) 701using (RegistryKey policyKey = Registry.LocalMachine.OpenSubKey(WINDOWS_SAC_REGISTRY_KEY))
Microsoft.Build.Tasks.Core (33)
AssemblyFoldersEx.cs (3)
153using (RegistryKey baseKey = openBaseKey(hive, view)) 233using (RegistryKey keyPlatform = baseKey.OpenSubKey(directoryKey.RegistryKey, false)) 291private bool IsVersionInsideRange(Version v, RegistryKey keyPlatform)
BootstrapperUtil\Util.cs (4)
173RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 181RegistryKey additionalPackagePathsRegKey = bootstrapperBaseRegKey.OpenSubKey(BOOTSTRAPPER_REGISTRY_ADDITIONAL_PACKAGE_PATHS_KEYNAME); 215private static string ReadRegistryString(RegistryKey key, string path, string registryValue) 217RegistryKey subKey = key.OpenSubKey(path, false);
ManifestUtil\ComImporter.cs (12)
146private void CheckForUnknownSubKeys(RegistryKey key) 151private void CheckForUnknownSubKeys(RegistryKey key, string[] knownNames) 165private void CheckForUnknownValues(RegistryKey key) 170private void CheckForUnknownValues(RegistryKey key, string[] knownNames) 191using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 199using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID")) 210using (RegistryKey classesRootKey = RegistryKey.OpenBaseKey(RegistryHive.ClassesRoot, RegistryView.Registry32)) 212using (RegistryKey clsidKey = classesRootKey.OpenSubKey("CLSID")) 225private bool GetRegisteredClassInfo(RegistryKey rootKey, Guid clsid, ref ClassInfo info) 233RegistryKey classKey = rootKey.OpenSubKey(sclsid); 247RegistryKey subKey = classKey.OpenSubKey(subKeyName);
ManifestUtil\SecurityUtil.cs (3)
929using (RegistryKey localMachineKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32)) 931using (RegistryKey versionIndependentToolKey = localMachineKey.OpenSubKey(versionIndependentToolKeyName, writable: false))
ManifestUtil\Util.cs (1)
280RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false);
RegistryDelegates.cs (3)
12internal delegate RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view); 21internal delegate IEnumerable<string> GetRegistrySubKeyNames(RegistryKey baseKey, string subKey); 30internal delegate string GetRegistrySubKeyDefaultValue(RegistryKey baseKey, string subKey);
RegistryHelper.cs (7)
22internal static IEnumerable<string>? GetSubKeyNames(RegistryKey baseKey, string subkey) 26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 43internal static string? GetDefaultValue(RegistryKey baseKey, string subkey) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey)) 65internal static RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view) 67RegistryKey key = RegistryKey.OpenBaseKey(hive, view);
Microsoft.Build.Utilities.Core (15)
AssemblyFoldersEx.cs (3)
153using (RegistryKey baseKey = openBaseKey(hive, view)) 233using (RegistryKey keyPlatform = baseKey.OpenSubKey(directoryKey.RegistryKey, false)) 291private bool IsVersionInsideRange(Version v, RegistryKey keyPlatform)
RegistryDelegates.cs (3)
12internal delegate RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view); 21internal delegate IEnumerable<string> GetRegistrySubKeyNames(RegistryKey baseKey, string subKey); 30internal delegate string GetRegistrySubKeyDefaultValue(RegistryKey baseKey, string subKey);
RegistryHelper.cs (7)
22internal static IEnumerable<string>? GetSubKeyNames(RegistryKey baseKey, string subkey) 26using (RegistryKey? subKey = baseKey.OpenSubKey(subkey)) 43internal static string? GetDefaultValue(RegistryKey baseKey, string subkey) 47using (RegistryKey? key = baseKey.OpenSubKey(subkey)) 65internal static RegistryKey OpenBaseKey(RegistryHive hive, RegistryView view) 67RegistryKey key = RegistryKey.OpenBaseKey(hive, view);
ToolLocationHelper.cs (2)
2681using (RegistryKey baseKey = openBaseKey(registryHive, registryView)) 2733using (RegistryKey versionKey = baseKey.OpenSubKey(platformSDKsRegistryKey))
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Desktop\TestHelpers.cs (1)
99using (var key = Registry.LocalMachine.OpenSubKey($@"SOFTWARE\Microsoft\MSBuild\ToolsVersions\{vsVersion}", false))
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\Interaction.vb (5)
322Dim UserKey As RegistryKey 323Dim AppSectionKey As RegistryKey = Nothing 353Dim rk As RegistryKey 412Dim rk As RegistryKey = Nothing 452Dim rk As RegistryKey
Microsoft.VisualBasic.Forms (6)
Microsoft\VisualBasic\MyServices\RegistryProxy.vb (6)
21Public ReadOnly Property ClassesRoot() As RegistryKey 27Public ReadOnly Property CurrentConfig() As RegistryKey 33Public ReadOnly Property CurrentUser() As RegistryKey 39Public ReadOnly Property LocalMachine() As RegistryKey 45Public ReadOnly Property PerformanceData() As RegistryKey 51Public ReadOnly Property Users() As RegistryKey
Microsoft.VisualStudio.LanguageServices (14)
CodeMarkers\ManagedCodeMarkers.cs (3)
356using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView)) 357using (RegistryKey key = baseKey.OpenSubKey(regRoot + "\\Performance"))
ColorSchemes\ColorSchemeApplier.Settings.cs (6)
67using var registryRoot = VSRegistry.RegistryRoot(_serviceProvider, __VsLocalRegistryType.RegType_Configuration, writable: true); 71using var itemKey = registryRoot.CreateSubKey(item.SectionName); 94using var registryRoot = VSRegistry.RegistryRoot(_serviceProvider, __VsLocalRegistryType.RegType_Configuration, writable: false); 95using var itemKey = registryRoot.OpenSubKey(ColorSchemeApplierKey); 107using var registryRoot = VSRegistry.RegistryRoot(_serviceProvider, __VsLocalRegistryType.RegType_Configuration, writable: true); 108using var itemKey = registryRoot.CreateSubKey(ColorSchemeApplierKey);
Options\LocalUserRegistryOptionPersister.cs (5)
20private readonly RegistryKey _registryKey; 22private LocalUserRegistryOptionPersister(RegistryKey registryKey) 36var root = (__VsLocalRegistryRootHandle.RegHandle_LocalMachine == handle) ? Registry.LocalMachine : Registry.CurrentUser; 44using var subKey = _registryKey.OpenSubKey(path); 128using var subKey = _registryKey.CreateSubKey(path);
Microsoft.Win32.Registry (23)
artifacts\obj\Microsoft.Win32.Registry\Debug\net10.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)
artifacts\obj\Microsoft.Win32.Registry.AccessControl\Debug\net10.0\Microsoft.Win32.Registry.AccessControl.notsupported.cs (3)
11public static System.Security.AccessControl.RegistrySecurity GetAccessControl(this Microsoft.Win32.RegistryKey key) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_RegistryAccessControl); } 12public static System.Security.AccessControl.RegistrySecurity GetAccessControl(this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.AccessControlSections includeSections) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_RegistryAccessControl); } 13public static void SetAccessControl(this Microsoft.Win32.RegistryKey key, System.Security.AccessControl.RegistrySecurity registrySecurity) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_RegistryAccessControl); }
MSBuildTaskHost (2)
NativeMethods.cs (2)
648using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY)) 701using (RegistryKey policyKey = Registry.LocalMachine.OpenSubKey(WINDOWS_SAC_REGISTRY_KEY))
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.RegistryKey))]
PresentationCore (7)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
297RegistryKey regkey = Registry.LocalMachine; 298RegistryKey recognizerKey = regkey.OpenSubKey(GestureRecognizerPath);
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
343RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
328RegistryKey stylusKey = null; // This object has finalizer to close the key. 329RegistryKey touchKey = null; // This object has finalizer to close the key.
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
79RegistryKey key = null; // This object has finalizer to close the key.
System\Windows\Input\TextCompositionManager.cs (1)
903RegistryKey key = Registry.CurrentUser.OpenSubKey("Control Panel\\Input Method");
PresentationFramework (21)
MS\Internal\IO\Packaging\PackageFilter.cs (7)
519RegistryKey iFilterIidKey = 535private static RegistryKey FindSubkey(RegistryKey containingKey, string[] keyPath) 537RegistryKey currentKey = containingKey; 559RegistryKey mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey); 560RegistryKey mimeTypeKey = (mimeContentType?.OpenSubKey(contentType.ToString())); 585RegistryKey persistentHandlerKey =
System\Windows\Application.cs (1)
2294using (RegistryKey soundKey = Registry.CurrentUser.OpenSubKey(regPath))
System\Windows\Documents\RtfToXamlReader.cs (1)
3708RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
33private static string GetNonEmptyRegistryString(RegistryKey key, string value) 129internal void WriteToRegistryKey(RegistryKey key) 151internal static SerializerDescriptor CreateFromRegistry(RegistryKey plugIns, string keyName) 158RegistryKey key = plugIns.OpenSubKey(keyName);
System\Windows\Documents\Serialization\SerializerProvider.cs (5)
43RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 74RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 82RegistryKey newPlugIn = plugIns.CreateSubKey(serializerKey); 100RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 221private static readonly RegistryKey _rootKey = Registry.LocalMachine;
System\Windows\Markup\RestrictiveXamlXmlReader.cs (3)
40using (RegistryKey hklm = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64)) 44using (RegistryKey xpsDangerKey = hklm.OpenSubKey(AllowedTypesForRestrictiveXamlContexts, false))
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
393using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey( 461using (RegistryKey defaultRMKey = Registry.CurrentUser.CreateSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
324using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
RunTests (2)
ProcDumpUtil.cs (2)
18using var registryKey = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps", writable: true); 28using var registryKey = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps", writable: true);
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\TestCertificates.cs (1)
18var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
System.Windows.Forms (14)
System\Windows\Forms\Application.cs (2)
142public static RegistryKey CommonAppDataRegistry 636public static RegistryKey UserAppDataRegistry
System\Windows\Forms\ComponentModel\COM2Interop\IComPropertyBrowser.cs (2)
48void LoadState(RegistryKey? key); 54void SaveState(RegistryKey? key);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
29RegistryKey? key = Registry.CurrentUser.OpenSubKey(IESettingsRegPath); 128RegistryKey? key = null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2265void IComPropertyBrowser.SaveState(RegistryKey? key) 2279void IComPropertyBrowser.LoadState(RegistryKey? key)
System\Windows\Forms\Input\InputLanguage.cs (5)
110using RegistryKey? key = Registry.LocalMachine.OpenSubKey($@"{KeyboardLayoutsRegistryPath}\{LayoutId}"); 147using RegistryKey? key = Registry.LocalMachine.OpenSubKey(KeyboardLayoutsRegistryPath); 153using RegistryKey? subKey = key.OpenSubKey(subKeyName); 214using RegistryKey? key = Registry.CurrentUser.OpenSubKey(UserProfileRegistryPath); 219using RegistryKey? subKey = key.OpenSubKey(language);
System\Windows\Forms\Internal\RegistryKeyExtensions.cs (1)
10public static string? GetMUIString(this RegistryKey? key, string keyName, string fallbackKeyName)
System.Windows.Forms.Design (9)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
297using RegistryKey? regkey = Registry.LocalMachine.OpenSubKey(
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (6)
47using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey); 50using RegistryKey? verKey = key?.OpenSubKey("Version"); 248using RegistryKey? key = Registry.ClassesRoot.OpenSubKey(controlKey) 255using RegistryKey? tlbKey = key.OpenSubKey("TypeLib"); 260using RegistryKey? verKey = key.OpenSubKey("Version"); 302using RegistryKey? inprocServerKey = key.OpenSubKey("InprocServer32");
System\Windows\Forms\Design\DocumentDesigner.cs (2)
782RegistryKey key = null; 783RegistryKey designtimeKey = null;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
239using RegistryKey? key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Accessibility");
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
13public static unsafe bool RegLoadMUIString(RegistryKey key, string keyName, out string localizedValue)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationTests.cs (1)
332using RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Accessibility");
System\Windows\Forms\LinkUtilitiesTests.cs (1)
15RegistryKey? key = Registry.CurrentUser.OpenSubKey(LinkUtilities.IEMainRegPath);