获取Microsoft Windows语言环境ID和名称 [英] Get microsoft windows Locale ID and name
本文介绍了获取Microsoft Windows语言环境ID和名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的
我看到下面的链接由Microsoft指定了一个定位ID.
http://msdn.microsoft.com/en-us/goglobal/bb964664 >
如何使用C#获取locate_id和国家/地区名称的列表?这样我就可以在下拉列表中供用户选择.
谢谢
解决方案
如果找到了这个
使用系统; 使用System.Globalization; 公共类printClass {public static void Main() { foreach(CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures)) { Console.WriteLine(ci); } } }
Dear all,
I see that there is a locate id specified by microsoft as below link.
http://msdn.microsoft.com/en-us/goglobal/bb964664
How can I get the list of locate_id and country name using C#? So that I can put in the drop down list for user to select.
Thanks,
解决方案
Hi,
if found this:
using System; using System.Globalization; public class printClass {public static void Main() { foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures)) { Console.WriteLine(ci); } } }
这篇关于获取Microsoft Windows语言环境ID和名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文