261 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 (21)
DataProtectionBuilderExtensions.cs (1)
192public static IDataProtectionBuilder PersistKeysToRegistry(this IDataProtectionBuilder builder, RegistryKey registryKey)
KeyManagement\XmlKeyManager.cs (1)
598RegistryKey? regKeyStorageKey = null;
LoggingExtensions.cs (1)
158public static partial void ReadingDataFromRegistryKeyValue(this ILogger logger, RegistryKey registryKeyName, string value);
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; 131private static void WithUniqueTempRegKey(Action<RegistryKey> testCode) 134var uniqueSubkey = LazyHkcuTempKey.Value.CreateSubKey(uniqueName); 146private 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)
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);
FrameworkLocationHelper.cs (3)
1109using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView)) 1110using (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 (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);
Engine\RegistryKeyWrapper.cs (6)
26private RegistryKey wrappedKey; 28private RegistryKey registryHive; 37protected RegistryKeyWrapper(RegistryKey wrappedKey, RegistryKey registryHive) 59internal RegistryKeyWrapper(string registryKeyPath, RegistryKey registryHive) 201private RegistryKey WrappedKey
Shared\FrameworkLocationHelper.cs (1)
428Microsoft.Win32.RegistryKey baseKey = Microsoft.Win32.Registry
Solution\VCWrapperProject.cs (4)
264using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, registryView)) 305private static string TryLocationFromRegistry(RegistryKey root, string subKeyName, string valueName, 308using (RegistryKey subKey = root.OpenSubKey(subKeyName))
Microsoft.Build.Engine.UnitTests (10)
Evaluation\Expander_Tests.cs (10)
1747RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1769RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1794RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1817RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1839RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 1861RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3771RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3795RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3819RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test"); 3843RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\MSBuild_test");
Microsoft.Build.Framework (2)
EncodingUtilities.cs (1)
305using RegistryKey? windowsVersionRegistry = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
NativeMethods.cs (1)
612using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_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)
168RegistryKey bootstrapperBaseRegKey = Registry.LocalMachine.OpenSubKey(BOOTSTRAPPER_REGISTRY_PATH_BASE); 176RegistryKey additionalPackagePathsRegKey = bootstrapperBaseRegKey.OpenSubKey(BOOTSTRAPPER_REGISTRY_ADDITIONAL_PACKAGE_PATHS_KEYNAME); 210private static string ReadRegistryString(RegistryKey key, string path, string registryValue) 212RegistryKey subKey = key.OpenSubKey(path, false);
ManifestUtil\ComImporter.cs (12)
126private void CheckForUnknownSubKeys(RegistryKey key) 131private void CheckForUnknownSubKeys(RegistryKey key, string[] knownNames) 145private void CheckForUnknownValues(RegistryKey key) 150private void CheckForUnknownValues(RegistryKey key, string[] knownNames) 171using (RegistryKey userKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\CLASSES\\CLSID")) 179using (RegistryKey machineKey = Registry.ClassesRoot.OpenSubKey("CLSID")) 190using (RegistryKey classesRootKey = RegistryKey.OpenBaseKey(RegistryHive.ClassesRoot, RegistryView.Registry32)) 192using (RegistryKey clsidKey = classesRootKey.OpenSubKey("CLSID")) 205private bool GetRegisteredClassInfo(RegistryKey rootKey, Guid clsid, ref ClassInfo info) 213RegistryKey classKey = rootKey.OpenSubKey(sclsid); 227RegistryKey subKey = classKey.OpenSubKey(subKeyName);
ManifestUtil\SecurityUtil.cs (3)
928using (RegistryKey localMachineKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32)) 930using (RegistryKey versionIndependentToolKey = localMachineKey.OpenSubKey(versionIndependentToolKeyName, writable: false))
ManifestUtil\Util.cs (1)
295RegistryKey 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.Tasks.UnitTests (7)
AssemblyDependency\Miscellaneous.cs (4)
2317RegistryKey baseKey = Registry.CurrentUser; 2318RegistryKey folderKey = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\.NETCompactFramework\v2.0.3600\PocketPC\AssemblyFoldersEx\AFETestDeviceControl"); 2322RegistryKey servicePackKey = baseKey.CreateSubKey(@"SOFTWARE\Microsoft\.NETCompactFramework\v2.0.3600\PocketPC\AssemblyFoldersEx\AFETestDeviceControl\1234"); 2332RegistryKey baseKey = Registry.CurrentUser;
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (3)
2514private static RegistryKey GetBaseKey(RegistryHive hive, RegistryView view) 2536private static IEnumerable<string> GetRegistrySubKeyNames(RegistryKey baseKey, string subKey) 2784private static string GetRegistrySubKeyDefaultValue(RegistryKey baseKey, string subKey)
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)
2676using (RegistryKey baseKey = openBaseKey(registryHive, registryView)) 2728using (RegistryKey versionKey = baseKey.OpenSubKey(platformSDKsRegistryKey))
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.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)
artifacts\obj\Microsoft.Win32.Registry.AccessControl\Debug\net9.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 (1)
NativeMethods.cs (1)
612using (RegistryKey fileSystemKey = Registry.LocalMachine.OpenSubKey(WINDOWS_FILE_SYSTEM_REGISTRY_KEY))
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.RegistryKey))]
PresentationCore (9)
MS\Internal\FontCache\FontSourceCollection.cs (1)
142using (RegistryKey fontsKey = Registry.LocalMachine.OpenSubKey(InstalledWindowsFontsRegistryKey))
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (2)
319RegistryKey regkey = Registry.LocalMachine; 320RegistryKey recognizerKey = regkey.OpenSubKey(GestureRecognizerPath);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
327RegistryKey featureKey;
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
349RegistryKey key = Registry.LocalMachine.OpenSubKey(c_devmodeRegKey);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
346RegistryKey stylusKey = null; // This object has finalizer to close the key. 347RegistryKey touchKey = null; // This object has finalizer to close the key.
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
86RegistryKey key = null; // This object has finalizer to close the key.
System\Windows\Input\TextCompositionManager.cs (1)
902RegistryKey key;
PresentationFramework (23)
MS\Internal\AppModel\AssemblyFilter.cs (1)
77RegistryKey featureKey;
MS\Internal\IO\Packaging\PackageFilter.cs (7)
522RegistryKey iFilterIidKey = 538private static RegistryKey FindSubkey(RegistryKey containingKey, string[] keyPath) 540RegistryKey currentKey = containingKey; 562RegistryKey mimeContentType = FindSubkey(Registry.ClassesRoot, _mimeContentTypeKey); 563RegistryKey mimeTypeKey = (mimeContentType == null ? null : mimeContentType.OpenSubKey(contentType.ToString())); 588RegistryKey persistentHandlerKey =
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
327RegistryKey featureKey;
System\Windows\Application.cs (1)
2290using (RegistryKey soundKey = Registry.CurrentUser.OpenSubKey(regPath))
System\Windows\Documents\RtfToXamlReader.cs (1)
3704RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
39private static string GetNonEmptyRegistryString(RegistryKey key, string value) 134internal void WriteToRegistryKey(RegistryKey key) 156internal static SerializerDescriptor CreateFromRegistry(RegistryKey plugIns, string keyName) 163RegistryKey key = plugIns.OpenSubKey(keyName);
System\Windows\Documents\Serialization\SerializerProvider.cs (5)
58RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 89RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 97RegistryKey newPlugIn = plugIns.CreateSubKey(serializerKey); 115RegistryKey plugIns = _rootKey.CreateSubKey(_registryPath); 236private static readonly RegistryKey _rootKey = Registry.LocalMachine;
System\Windows\Markup\RestrictiveXamlXmlReader.cs (3)
42using (RegistryKey hklm = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64)) 46using (RegistryKey xpsDangerKey = hklm.OpenSubKey(AllowedTypesForRestrictiveXamlContexts, false))
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
398using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey( 466using (RegistryKey defaultRMKey = Registry.CurrentUser.CreateSubKey(
MS\Internal\Documents\RMPublishingDialog.cs (1)
332using (RegistryKey defaultRMKey = Registry.CurrentUser.OpenSubKey(
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\TestCertificates.cs (1)
18var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");