Exemplo n.º 1
0
 /// <summary>
 /// 修改key-value,异常则RegistryKey对象返回null
 /// </summary>
 /// <param name="reg"></param>
 /// <param name="key"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public static RegistryKey UpdateKeyValue(this RegistryKey reg, string key, object value)
 {
     return(reg.AddKeyValue(key, value));
 }