在 WinRT 中获取当前用户 [英] Get current user in WinRT

查看:35
本文介绍了在 WinRT 中获取当前用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名 C# 开发人员,我已经习惯了旧的 Environment.CurrentUser.现在我需要在我的 Windows 8 Metro 应用程序 (html & js) 中使用它.

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).

那么我该如何获得呢?

推荐答案

Windows.System.UserProfile.UserInformation.

还有一个使用这个类的例子,帐户图片名称样本.

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

这篇关于在 WinRT 中获取当前用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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