我遇到了以下尝试读取注册表项但失败的代码的问题。具体错误是:“System.NullReferenceException:未将对象引用设置为对象的实例。”我使用的代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingMicrosoft.Win32;usingSystem.Collections;usingSystem.Diagnostics;usingSystem.Security.Principal;namespaceUDTLibrary{publicclassNotificationBar{pu