Windows Phone 7.1应用程序中的自动登录过程 [英] Automatic login process in Windows Phone 7.1 application

查看:109
本文介绍了Windows Phone 7.1应用程序中的自动登录过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows Phone应用程序( silverlight应用程序)中,我希望用户成功登录后即可自动登录该应用程序.即我不希望用户每次都登录.

In my Windows Phone application(silverlight application), I want the user to automatically get logged-in to the application once he logs in successfully. I.e I don't want the user to login everytime.

我通过隔离存储文件概念实现了这一目标.即首先我创建 目录中,我创建了一个隔离的存储文件流,并将电子邮件和密码凭据存储在某个文件中.
当我停止调试并重新启动它时,流阅读器会成功地从该文件中读取电子邮件密码凭据.

I achieved this through a Isolated Storage file concept. I.e First I created a directory and I created an isolated storage file stream and stored the email and password credentials in some file.
When I stopped debugging and start it back, my stream reader reads the email-password credentials from that file successfully.

我的问题是当我关闭模拟器并将其重新打开时,我无法从该文件读取(特别是目录本身不存在!).我还想知道我的隔离存储坚持在真正的Windows手机?

My problem is when I close my emulator and open it back I could not read from that file.(particularly, the directory itself does not exist!).I also want to know my Isolated storage persists in real windows phone?

我该如何解决?

推荐答案

这是设计使然.

关闭模拟器后,隔离器中的隔离存储不会保留.

The isolated storage in the emulator is not persisted after you close it.

参考: Windows Phone模拟器 向下滚动到功能":

Reference: Windows Phone Emulator Scroll down to "Features":

Important Note:
Isolated storage is available while the emulator is running. Data in isolated storage does not persist after the emulator closes. This includes files stored in a local database, as these files reside in isolated storage.

Important Note:
Isolated storage is available while the emulator is running. Data in isolated storage does not persist after the emulator closes. This includes files stored in a local database, as these files reside in isolated storage.

这篇关于Windows Phone 7.1应用程序中的自动登录过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆