Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current user in WinRT

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

So how do I get it?

like image 961
sebagomez Avatar asked Nov 30 '22 03:11

sebagomez


1 Answers

Windows.System.UserProfile.UserInformation.

There's also an example that uses this class, the Account picture name sample .

like image 111
James McNellis Avatar answered Dec 18 '22 10:12

James McNellis