Get current user in WinRT

I am a C # developer and I'm used to the good old Environment.CurrentUser . Now I need exaccty that in my Windows 8 Metro application (html and js).

So how do I get it?

+4
source share
1 answer

Windows.System.UserProfile.UserInformation .

There's also an example that uses this class, a sample account account name .

+22
source

Source: https://habr.com/ru/post/1403157/


All Articles