62,046
社区成员
发帖
与我相关
我的任务
分享
public void WriteReg(string key, string value)
{
try
{
RegistryKey rootKey = Registry.LocalMachine.CreateSubKey(regSubKey);
rootKey.SetValue(key, value);
rootKey.Close();
}
catch (Exception)
{
throw;
}
}