gpt4 book ai didi

c# - Registry.CurrentUser 为空

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:59 24 4
gpt4 key购买 nike

我正在使用以下属性在我的代码中设置/读取注册表值。但是,在行中:

RegistryKey regKey = Registry.CurrentUser;

regKey 为空。这只发生在少数机器上。有什么想法吗?

最佳答案

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

//这是它将创建的路径

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

关于c# - Registry.CurrentUser 为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6895621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com