如何将值写入 Windows Mobile 5 设备上的注册表?
我有一个字符串值,我想将其作为双字写入注册表以通过另一个程序读取。 如何使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要使用 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
使用 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.
您可以使用此类:
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