使用IsolatedStorageFile还是WritableSettingsStore?
我正在制作 Visual Studio 2010 扩展,需要一些存储空间来存储一些设置,例如:最近文件列表、UI 控件状态、一些用户首选项等...
我应该使用哪个,为什么?
I'm making a visual studio 2010 extension and need some storage to store some settings like: a list of recent files, ui control state, some user preferences, etc...
Which should I use, and why?
the WritableSettingsStore or the IsolatedStorageFile ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
他们都是可行的。我目前正在使用独立存储来存储 vsx 和相关控制设计器的设置。
我可以告诉你,它工作得很好。一旦实施,我不必返回并更改任何内容或修复极端情况错误。
如果我重来一次……我不确定我会选择 ISF 还是 WSS。 WSS 的优点是专为 Visual Studio 扩展而构建,这意味着它是无懈可击的。但API有点难处理。
您的选择应该基于您更容易实施和支持。
They are both viable. I'm currently using isolated storage to store settings for both a vsx and related control designers.
I can tell you that it works perfectly fine. Once implemented, I haven't had to go back and change anything or fix corner case bugs.
If I were to do it over again... I'm not sure if I would go with ISF or the WSS. WSS has the advantage of being built for use by visual studio extensions, which means it is bulletproof. But the API is a bit harder to deal with.
Your choice should be based on which is easier for you to implement and support.