如何将值写入 Windows Mobile 5 设备上的注册表?

发布于 2024-07-12 10:58:57 字数 66 浏览 4 评论 0原文

我有一个字符串值,我想将其作为双字写入注册表以通过另一个程序读取。 如何使用 c# .net 创建新的密钥/字符串?

I have a string value that I want to write to the registry as a Dword to read via another program. How can i create a new key/string using c# .net?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

莫多说 2024-07-19 10:58:57

您需要使用 Microsoft.Win32.Registry 添加到移动设备注册表。 所有方法都具有移动支持:http://msdn。 microsoft.com/en-us/library/microsoft.win32.registry_members.aspx

You need to use Microsoft.Win32.Registry to add to the mobile device registry. All of the methods have mobile support: http://msdn.microsoft.com/en-us/library/microsoft.win32.registry_members.aspx

傾城如夢未必闌珊 2024-07-19 10:58:57

使用 Microsoft.Win32.Registry 类,就像在桌面上一样。 有一个警告:如果您使用 CF 1.0,则这些类不存在。 在这种情况下,我建议从 旧 SDF 1.4 源中提取实现

Using the Microsoft.Win32.Registry classes, just like on the desktop. There is one caveat: if you're using CF 1.0 then the classes don't exist. In that case I'd recommend pulling the implementation from the old SDF 1.4 source.

友欢 2024-07-19 10:58:57

您可以使用此类:

Microsoft.Win32.Registry

.NET Compact Framework 3.5 和 2.0 支持

以下链接可能对您有帮助:

如何:在注册表中创建密钥 (Visual C#)

http: //www.codeproject.com/KB/mobile/PocketRegistry.aspx

You can use this class:

Microsoft.Win32.Registry

it is supported in .NET Compact Framework 3.5 and 2.0

The following links may help you:

How to: Create a Key In the Registry (Visual C#)

http://www.codeproject.com/KB/mobile/PocketRegistry.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文