87 references to GetValue
aspire (1)
Telemetry\WindowsMachineInformationProvider.cs (1)
72var existingValue = key.GetValue(matchingKeyName)?.ToString();
dotnet (2)
Telemetry\DevDeviceIDGetter.cs (1)
46deviceId = key?.GetValue("deviceid") as string;
Telemetry\DockerContainerDetectorForTelemetry.cs (1)
22return subkey?.GetValue("ContainerType") != null
Microsoft.AspNetCore.DataProtection (15)
RegistryPolicyResolver.cs (14)
46var sinksFromRegistry = (string?)key.GetValue("KeyEscrowSinks"); 81var encryptionType = (string?)policyRegKey.GetValue("EncryptionType"); 101var defaultKeyLifetime = (int?)policyRegKey.GetValue("DefaultKeyLifetime"); 117var valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.EncryptionAlgorithm)); 123valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.EncryptionAlgorithmProvider)); 129valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize)); 135valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.HashAlgorithm)); 141valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.HashAlgorithmProvider)); 153var valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.EncryptionAlgorithm)); 159valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.EncryptionAlgorithmProvider)); 165valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize)); 177var valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.EncryptionAlgorithmType)); 183valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize)); 189valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.ValidationAlgorithmType));
Repositories\RegistryXmlRepository.cs (1)
131var data = regKey.GetValue(valueName) as string;
Microsoft.Build (1)
Evaluation\IntrinsicFunctions.cs (1)
313result = subKey.GetValue(valueName);
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
308string? buildNumber = windowsVersionRegistry?.GetValue("CurrentBuildNumber")?.ToString();
Microsoft.Build.Tasks.Core (8)
BootstrapperUtil\Util.cs (2)
188string path = (string)additionalPackagePathsRegKey.GetValue(key); 219object oValue = subKey?.GetValue(registryValue);
ManifestUtil\ComImporter.cs (3)
250registeredPath = (string)subKey.GetValue(null); 251threadingModel = (string)subKey.GetValue("ThreadingModel"); 257progid = (string)subKey.GetValue(null);
ManifestUtil\SecurityUtil.cs (1)
932versionIndependentToolPath = versionIndependentToolKey.GetValue("Path") as string;
ManifestUtil\Util.cs (1)
282string org = (string)key.GetValue("RegisteredOrganization");
src\msbuild\src\Shared\RegistryHelper.cs (1)
51value = (string?)key.GetValue("");
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\RegistryHelper.cs (1)
51value = (string?)key.GetValue("");
ToolLocationHelper.cs (1)
2738platformSDKDirectory = versionKey.GetValue("InstallationFolder") as string;
Microsoft.DotNet.Cli.Utils (3)
DependencyProvider.cs (2)
178return providerKey?.GetValue(null) as string ?? null; 191var thisProductCode = providerKey?.GetValue(null) as string ?? null;
UILanguageOverride.cs (1)
135var buildNumber = windowsVersionRegistry?.GetValue("CurrentBuildNumber")?.ToString() ?? string.Empty;
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\DeviceIdHelper.cs (1)
74_deviceId = key?.GetValue(RegistryValueName) as string;
Microsoft.TestPlatform.CoreUtilities (1)
Helpers\WindowsRegistryHelper.cs (1)
30return _registryKey?.GetValue(name)?.ToString();
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Interaction.vb (1)
387o = rk.GetValue(sName)
PresentationCore (9)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
304path = recognizerKey.GetValue(GestureRecognizerValueName) as string;
System\Windows\Diagnostics\VisualDiagnostics.cs (1)
349object obj = key.GetValue(c_devmodeValueName);
System\Windows\Input\Stylus\Common\StylusLogic.cs (5)
337obj = stylusKey.GetValue(WispDoubleTapDistanceValue); 340obj = stylusKey.GetValue(WispDoubleTapTimeValue); 343obj = stylusKey.GetValue(WispCancelDeltaValue); 351obj = touchKey.GetValue(WispTouchDoubleTapDistanceValue); 355obj = touchKey.GetValue(WispTouchDoubleTapTimeValue);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
103valDefault = key.GetValue("");
System\Windows\Input\TextCompositionManager.cs (1)
906object obj = key.GetValue("EnableHexNumpad");
PresentationFramework (7)
MS\Internal\IO\Packaging\PackageFilter.cs (3)
522return (string)iFilterIidKey.GetValue(null); 559string extension = (string)mimeTypeKey.GetValue(_extension); 583return (persistentHandlerKey == null ? null : (string)persistentHandlerKey.GetValue(null));
System\Windows\Application.cs (1)
2298soundFile = (string)(soundKey.GetValue(""));
System\Windows\Documents\RtfToXamlReader.cs (1)
3714string value = (string)rk.GetValue(name);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
35string result = key.GetValue(value) as string;
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
50object value = xpsDangerKey.GetValue(typeName);
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (2)
399object keyValue = defaultRMKey.GetValue(_registryValueNameForAccountName); 406keyValue = defaultRMKey.GetValue(_registryValueNameForAccountType);
MS\Internal\Documents\RMPublishingDialog.cs (1)
331object keyValue = defaultRMKey.GetValue(_registryValueNameForRMTemplatePath);
System.Data.OleDb (2)
System\Data\Common\AdapterUtil.cs (2)
1100return key?.GetValue(queryvalue); 1118return key?.GetValue(queryvalue);
System.Diagnostics.EventLog (8)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
139string? installRoot = (string?)complusReg.GetValue("InstallRoot");
System\Diagnostics\EventLog.cs (3)
406filename = (string?)logKey.GetValue("File"); 778if (logKey.GetValue("MaxSize") == null) 780if (logKey.GetValue("AutoBackupLogFiles") == null)
System\Diagnostics\EventLogEntry.cs (1)
401fileName = (string?)regKey.GetValue(libRegKey);
System\Diagnostics\EventLogInternal.cs (3)
191string? resourceDll = (string?)logkey.GetValue("DisplayNameFile"); 198object? resourceIdObject = logkey.GetValue("DisplayNameID"); 1003object? val = logkey.GetValue(valuename);
System.Diagnostics.PerformanceCounter (9)
src\runtime\src\libraries\Common\src\System\Diagnostics\NetFrameworkUtils.cs (1)
139string? installRoot = (string?)complusReg.GetValue("InstallRoot");
System\Diagnostics\PerformanceCounterLib.cs (5)
551object firstID = serviceKey.GetValue("First Counter"); 712object isMultiInstanceObject = key.GetValue("IsMultiInstance"); 722object objectID = key.GetValue("First Counter"); 1045names = (string[])libraryKey.GetValue("Counter " + _perfLcid); 1047names = (string[])libraryKey.GetValue("Explain " + _perfLcid);
System\Diagnostics\SharedPerformanceCounter.cs (3)
639object optionsObject = categoryKey.GetValue("CategoryOptions"); 654object fileMappingSizeObject = categoryKey.GetValue("FileMappingSize"); 673object counterNamesObject = categoryKey.GetValue("Counter Names");
System.Management (1)
System\Management\ManagementScope.cs (1)
293string netFrameworkInstallRoot = (string)netFrameworkSubKey?.GetValue(RuntimeInformation.ProcessArchitecture == Architecture.Arm64 ?
System.Windows.Forms (6)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
34string? s = (string?)key.GetValue(name); 141string? s = (string?)key.GetValue("Anchor Underline");
System\Windows\Forms\Input\InputLanguage.cs (3)
155&& subKey.GetValue("Layout Id") is string subKeyLayoutId 215if (key is not null && key.GetValue("Languages") is string[] languages) 221&& subKey.GetValue("TransientLangId") is int transientLangId
System\Windows\Forms\Internal\RegistryKeyExtensions.cs (1)
15: key.GetValue(fallbackKeyName) is string value
System.Windows.Forms.Design (5)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
302string? fallBackFontName = (string?)regkey.GetValue($"Plane{planeNumber}");
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (4)
53_version = (string)verKey.GetValue("")!; 263string ver = (string)verKey.GetValue("")!; 283object o = tlbKey.GetValue("")!; 305string? inprocServer = (string?)inprocServerKey.GetValue(string.Empty);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
240if (key is not null && key.GetValue("TextScaleFactor") is int textScale)