[英]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.