简体   繁体   English

即使设备关闭后如何使IsolatedStorageSettings仍然存在?

[英]How to make IsolatedStorageSettings persist even after the device is turned off?

First page of the my application requests the login ID and password which I store using isolated storage. 我的应用程序的第一页请求使用独立存储存储的登录ID和密码。 I want my application to remember the login credentials even if the device is switched off ie once the user logs in, the application should store the login values and on a user's next visit the login page should not appear and directly the second page should be displayed. 我希望我的应用程序记住登录凭据,即使设备已关闭,即一旦用户登录,应用程序应存储登录值,并且在用户下次访问时,不应出现登录页面,应直接显示第二页。

Can anybody help me do this??? 任何人都可以帮我这样做吗???

Thanks in advance 提前致谢

See the question: " for how long data in Isolated storage is persistent ". 请参阅问题:“ 隔离存储中的数据持续多长时间 ”。

If you restart the Windows Phone emulator it is equivalent to deleting the application. 如果重新启动Windows Phone模拟器,则相当于删除该应用程序。 This does not happen on a real phone. 这不会发生在真正的手机上。

您应该调用IsolatedStorageSettings.Save()以将更改保留到设置类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使设备/模拟器关闭后如何使IsolatedStorageSettings仍然存在? - How to make IsolatedStorageSettings persist even after the device/emulator is turned off? LARGEADDRESSAWARE在安装后关闭了吗? - LARGEADDRESSAWARE turned off after installation? 为什么即使我在每个可能的点关闭它之后我的代码都在进行延迟加载? - Why is my code doing lazy loading even after I turned it off at every possible point? Silverlight:IsolatedStorageSettings 在页面刷新之间持久化数据 - Silverlight: IsolatedStorageSettings to persist data between page refresh 即使关闭了智能感知,Visual Studio仍保持自动填充 - Visual Studio keeps auto filling even with intellisense turned off 即使级联删除已关闭,也会获得“外键约束” - Getting “Foreign Key constraint” even though cascade delete is turned off 如何在空闲计时器关闭后使用.NET重新打开显示器? - How to use .NET to Turn the Monitor back on after the Idle Timer has Turned it Off? UAC关闭时如何提升应用程序? - How to elevate application when UAC is turned Off? 一段时间后,WPF动画中的缓动功能会自动关闭 - Ease function is automatically turned off in wpf animation after some time 提交后如何使所选值的下拉列表保持不变 - How can I make dropdownlistfor selected value persist after submit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM