问题
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