locked
how to get the Microsoft id the device is signed in?

    Question

  • Is there any way to get the Microsoft id the device is signed in?

    I tried the Windows account authorization sample and Account picture name sample, but it doesn't get the Microsoft id. 

    Sunday, March 2, 2014 4:02 AM

Answers

  • Hi ner9G,

    What do you mean by Microsoft id? You mean the account email address?

    If this is what you mean, I have to say sorry, there is no way to get such email account address from UserInformation  class. You can only get display name by GetDisplayNameAsync | getDisplayNameAsync method/

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by ner9G Monday, March 3, 2014 8:47 AM
    Monday, March 3, 2014 2:05 AM
    Moderator