简体   繁体   English

如何使用.Net CF 3.5获取PDA / Windows Mobile的用户名?

[英]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.

相关问题 如何检测Windows Mobile 5设备序列号? (.NET CF 3.5) - How to detect Windows Mobile 5 Device Serial Number? (.NET CF 3.5) 如何检测用户何时单击Windows Mobile(.NET CF 3.5)中的通知图标 - How can you detect when the user clicks on the notification icon in Windows Mobile (.NET CF 3.5) 如何在Windows应用程序.Net CF 3.5中显示/关闭加载表单 - How To Show / Close Loading Form In Windows Applications of .Net CF 3.5 在Windows Mobile中输入数字的最佳方法是什么? (.NET CF 3.5) - What's the best way to enter numbers in Windows Mobile? (.NET CF 3.5) 运行.NET CF 3.5应用程序时Windows Mobile 6.5文件系统使Motorola MC55崩溃 - Windows Mobile 6.5 file system crash Motorola MC55 when running .NET CF 3.5 application windows mobile 6.5 .net CF - 如何获取内部电话打开或关闭的通知 - windows mobile 6.5 .net CF - how to get notification that the internal phone turns on or off 如何使用命令行重建.net CF应用程序并在Windows Mobile模拟器中部署 - How to rebuild .net CF application and deploy in windows mobile emulator using command-line Windows Mobile-.NET CF:如何通过PC连接到Internet? - Windows Mobile - .NET CF: How to connect to the internet via PC? 如何在.NET CF 3.5中使用UnmanagedFunctionPointerAttribute - How to use UnmanagedFunctionPointerAttribute in .NET CF 3.5 如何使用c#.net,windowsce,.net3.5框架,Windows Mobile 6 Professional将滚动条应用于Windows Mobile应用程序 - How to apply scrollbar to windows mobile application using c#.net, windowsce, .net3.5 framework, windows mobile 6 professional
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM