public void SetValue(string name, object value, RegistryValueKind valueKind) { value = System.Management.Automation.PSObject.Base(value); value = RegistryWrapperUtils.ConvertUIntToValueForRegistryIfNeeded(value, valueKind); _regKey.SetValue(name, value, valueKind); }
public void SetValue(string name, object value, RegistryValueKind valueKind) { using (_provider.CurrentPSTransaction) { value = System.Management.Automation.PSObject.Base(value); value = RegistryWrapperUtils.ConvertUIntToValueForRegistryIfNeeded(value, valueKind); _txRegKey.SetValue(name, value, valueKind); } }