如何语言限制 [英] how to language restrictions

查看:136
本文介绍了如何语言限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的应用程序适用于(en-us)语言。当这个语言是Windows Phone中的English Africa时,我的应用程序不应该工作。

当语言不存在时如何停止打开应用程序。

解决方案

阅读当前文化: CultureInfo.CurrentCulture属性 [ ^ ]并将其与您的目标文化进行比较 - LCID属性 [ ^ ]应该这样做。

hi,
my app works on (en-us) language. when the language is English Africa in windows phone, my application should not work.
how to stop opening the application when the language is not present.

解决方案

Read the current culture: CultureInfo.CurrentCulture property[^] and compare it with your "target" culture - the LCID property[^] should do it.


这篇关于如何语言限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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