感谢您的回复,不过我们开发的不是UWP应用,就是原始的winphone 8.0和winphone 8.1的应用,具体来说是用Uninty开发的winphone游戏。我试了您提供的方法,但是在vs中提示的是--命名空间”Windows.System"中不存在类型或命名空间名称“UserProfile”,。是否缺少程序集引用?
貌似这种方式不行,我估计引用相关的DLL应该也不行吧,请问有没有其他的办法呢?
您好,
我上面说的那个方法是在UWP中可以使用的,如果你是windows phone8的话是不能用这个方法的,我也测了一下常规的获取区域的API,发现他是返回的当前语言对应区域信息。
我的建议是可以考虑使用手机当前的地理位置去判断所在区域。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.