[英]How to get the UserName of the PDA/Windows Mobile using .Net CF 3.5?
well, this works great on a non Windows Mobile: 好吧,这在非Windows Mobile上效果很好:
string user = WindowsIdentity.GetCurrent().Name.ToString();
but, what I am looking for is how to get the name of the user on a Windows Mobile 5.0 and higher! 但是,我要寻找的是如何在Windows Mobile 5.0及更高版本上获得用户名!
I tried the search feature, but unfortunately didn't find anything yet! 我尝试了搜索功能,但很遗憾没有找到任何东西!
Thanks in advance. 提前致谢。
You can use the SystemState.OwnerName to get the name of the owner of the device, if they have filled that information in. 您可以使用SystemState.OwnerName来获取设备所有者的名称(如果他们已填写该信息)。
There is no currently logged on user for windows mobile devices. Windows移动设备当前没有登录用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.