65 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 (5)
BootstrapperUtil\Util.cs (2)
213string path = (string)additionalPackagePathsRegKey.GetValue(key); 244object oValue = subKey?.GetValue(registryValue);
ManifestUtil\SecurityUtil.cs (1)
959versionIndependentToolPath = 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)
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); 156string? 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)