17 references to SetValue
aspire (1)
Telemetry\WindowsMachineInformationProvider.cs (1)
93key.SetValue(keyName, value, RegistryValueKind.String);
Microsoft.AspNetCore.DataProtection (1)
Repositories\RegistryXmlRepository.cs (1)
156RegistryKey.SetValue(valueName, element.ToString(), RegistryValueKind.String);
Microsoft.Win32.Registry (2)
Microsoft\Win32\Registry.cs (1)
89key.SetValue(valueName, value, valueKind);
Microsoft\Win32\RegistryKey.cs (1)
1230SetValue(name, value, RegistryValueKind.Unknown);
System.Diagnostics.EventLog (11)
System\Diagnostics\EventLog.cs (7)
779logKey.SetValue("MaxSize", DefaultMaxSize, RegistryValueKind.DWord); 781logKey.SetValue("AutoBackupLogFiles", 0, RegistryValueKind.DWord); 787sourceLogKey.SetValue("EventMessageFile", GetDllPath(sourceData.MachineName), RegistryValueKind.ExpandString); 789sourceLogKey.SetValue("EventMessageFile", FixupPath(sourceData.MessageResourceFile), RegistryValueKind.ExpandString); 792sourceLogKey.SetValue("ParameterMessageFile", FixupPath(sourceData.ParameterResourceFile), RegistryValueKind.ExpandString); 796sourceLogKey.SetValue("CategoryMessageFile", FixupPath(sourceData.CategoryResourceFile), RegistryValueKind.ExpandString); 797sourceLogKey.SetValue("CategoryCount", sourceData.CategoryCount, RegistryValueKind.DWord);
System\Diagnostics\EventLogInternal.cs (4)
270logkey.SetValue("MaxSize", i, RegistryValueKind.DWord); 1049logkey.SetValue("Retention", retentionvalue, RegistryValueKind.DWord); 1119logkey.SetValue("DisplayNameFile", resourceFile, RegistryValueKind.ExpandString); 1120logkey.SetValue("DisplayNameID", resourceId, RegistryValueKind.DWord);
System.Diagnostics.PerformanceCounter (2)
System\Diagnostics\PerformanceCounterLib.cs (2)
530serviceKey.SetValue("IsMultiInstance", (int)categoryType, RegistryValueKind.DWord); 531serviceKey.SetValue("CategoryOptions", 0x3, RegistryValueKind.DWord);