[英]How Is This Returning NULL
My C# application license manager is returning NULL when checking for a Key's existence even though the key exists and my application is installed. 即使密钥存在且我的应用程序已安装,我的C#应用程序许可证管理器在检查密钥是否存在时仍返回NULL。 I have tried running as an Administrator and add or removing backslashes in the Key path.
我尝试以管理员身份运行,并在“密钥”路径中添加或删除反斜杠。
RegistryKey LitenUpKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\LitenUp\NIT", false);
if (LitenUpKey == null) {
// Registry Key NOT Found
return false;
}
NOTE: I am building as x64! 注意:我正在构建为x64!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.