在 Windows 应用商店应用中登录多个 Microsoft 帐户 [英] Sign in to multiple Microsoft account in Windows Store app

查看:60
本文介绍了在 Windows 应用商店应用中登录多个 Microsoft 帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以:

  • 在 Windows 应用商店应用中登录多个 Microsoft 帐户?邮件应用做到了*
  • 登录不是用于登录 Windows 的 Microsoft 帐户?商店应用做到了*

我尝试了类似以下的操作(取自 Live SDK 示例代码),但它只使用我用来登录 Windows 的帐户登录

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";
}

感谢任何帮助.

* 我不确定内置应用程序是否使用不同的 API 来执行此操作

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

推荐答案

我有一个非常相似的问题,有人告诉我这是不可能的,在这里:链接我发现,如果用户使用带有 Microsoft 帐户的 Windows,则不可能有多个帐户.但如果是本地帐户,您可以对您的应用实施签名逻辑,它不会自动登录.

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.

这篇关于在 Windows 应用商店应用中登录多个 Microsoft 帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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