Registry.CurrentUser is null

南笙酒味 提交于 2019-12-24 01:02:03

问题


I am using the following property to set/read registry values in my code. However, in the line:

RegistryKey regKey = Registry.CurrentUser;

regKey is null. This is happening only in a few machines. Any idea?


回答1:


RegistryKey regRPP = Registry.CurrentUser.CreateSubKey(@"Software\Softech\FaceReader");

//this is the path it will create

regRPP.SetValue("FaceReaderURL", "http://localhost/pnm/v4_spp/");


来源:https://stackoverflow.com/questions/6895621/registry-currentuser-is-null

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!