How to get Windows 8 Live ID
Asked Answered
A

3

9

Windows 8 uses Live ID as the user name. How do I get this LiveID in C#?

Addicted answered 23/4, 2012 at 8:51 Comment(1)
What are you trying to do exactly? More data would help...Robertroberta
C
6

Metro apps by design have restricted access to many information they shouldn't really need, and I think this might be one of them.

WinRT gives access to Windows.System.UserProfile.UserInformation class (as CodeCaster suggested), but as I checked, from all the methods there only GetDisplayNameAsync() might return live id (email) and it's only if the first/last name are not set on the account.

(Also, most of the methods in this class require setting Enterprise Authentication capability, which is not really welcome in the Store. And the documentation of the class is currently poor.)

For single-sign-on experience, you might rather use Live Software Development Kit.

Cartogram answered 1/9, 2012 at 22:0 Comment(0)
C
1

Perhaps Windows.System.UserProfile.UserInformation contain some relevant data.

Confutation answered 23/4, 2012 at 9:18 Comment(2)
I tried reference the Windows.System namespace, but I can't find it in a newly created WPF solution, even if the solution is using .NET Framework 4.5, can you tell me how do I see the namespace of Windows.System? Thanks a lot.Addicted
@Addicted - it is a WinRT only feature, not a .NET 4.5 featureTibetan

© 2022 - 2024 — McMap. All rights reserved.