.NET 应用程序中的用户设置大小是否有限制?

发布于 2024-09-17 13:39:03 字数 127 浏览 4 评论 0原文

我想将我的对象与许多值作为字符串(xml)序列化到用户设置中。 .NET 应用程序中“字符串”用户设置的大小是否有限制?

我正在扩展 ApplicationSettingsBase 来保存我的设置。

I would like to serialize my object with many values as string(xml) into user settings. Is there a limit on how large a "string" user setting can be in a .NET application?

I am extending ApplicationSettingsBase to save my settings.

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

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

发布评论

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

评论(1

时光磨忆 2024-09-24 13:39:29

应用程序设置代码没有施加明确的限制。唯一的限制实际上是后备存储(通常是文件系统)。

虽然这允许使用非常大的字符串,但我会警告不要在这里过度使用。仅仅因为它是可能的并不意味着它应该被完成:)

There is no explicit limit imposed by the application settings code. The only limits are really those of the backing storage (typically the file system).

While that allows for a very large string to be used I would caution from going overboard here. Just because it's possible doesn't mean it should be done :)

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