Sign in to multiple Microsoft account in Windows Store app

≯℡__Kan透↙ 提交于 2019-12-11 17:44:33

问题


Is it possible to:

  • sign-in to multiple Microsoft accounts in a Windows Store app? Mail app does it*
  • sign-in to Microsoft account that is not the one used for logging in to Windows? Store app does it*

I tried something like the following (taken from Live SDK sample code) but it only sign me in with the account I used to log in to Windows

var client = new LiveAuthClient();
var result = await client.LoginAsync(new[] { "wl.basic" });

if (result.Status == LiveConnectSessionStatus.Connected)
{
    this.AddAccountButton.Content = "connected";
}

Appreciate any help.


* I'm not sure if the built-in apps use different API's to do this


回答1:


I had a very similar issue, I've been told that's not possible, here: link I found out, that if the user use the Windows with a Microsoft account, there is no possibilities for multiple accounts. But in case of a local account, you can implement a signing off logic to your app, and it won't log you in automatically.



来源:https://stackoverflow.com/questions/22863819/sign-in-to-multiple-microsoft-account-in-windows-store-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!