BetterExplorer.Utilities.SetRegistryValue C# (CSharp) Метод

SetRegistryValue() публичный статический Метод

public static SetRegistryValue ( string Name, object Value ) : void
Name string
Value object
Результат void
		public static void SetRegistryValue(string Name, object Value) {
			using (RegistryKey rk = Registry.CurrentUser, rks = rk.OpenSubKey(@"Software\BExplorer", true)) {
				rks.SetValue(Name, Value);
			}
		}

Same methods

Utilities::SetRegistryValue ( string Name, object Value, RegistryValueKind Kind ) : void

Usage Example

 private void UpdaterWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     this._IsCheckUpdateFromTimer = true;
     Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal,
                            (Action)(() => {
         autoUpdater.ForceCheckForUpdate(true);
     }));
     Utilities.SetRegistryValue("LastUpdateCheck", DateTime.Now.ToBinary(), RegistryValueKind.QWord);
     LastUpdateCheck = DateTime.Now;
 }