Region Info Table : RegionInfo « Internationalization I18N « VB.Net






Region Info Table

   

Imports System
Imports System.Globalization

Module Module1
   Sub Main()
      Dim AllCultures() As CultureInfo
      Dim ACulture As CultureInfo
      Dim Rg As RegionInfo
      Dim k As Integer

      AllCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures)
      For Each ACulture In AllCultures
         Rg = New RegionInfo(ACulture.LCID)
         Console.WriteLine(Rg.TwoLetterISORegionName.ToString().PadRight(5, " ") + _
                              "," + Rg.EnglishName.PadRight(40, " ") + _
                              "," + ACulture.LCID.ToString())
      Next
   End Sub
End Module

   
    
    
  








Related examples in the same category

1.RegionInfo Class contains information about the country/region.
2.Compares the RegionInfo above with another RegionInfo created using CultureInfo
3.Creates a RegionInfo using the ISO 3166 two-letter code
4.Creates a RegionInfo using a CultureInfo.LCID
5.RegionInfo.CurrencyEnglishName Property gets the name of the currency used in the country/region.
6.RegionInfo.CurrencySymbol Property gets the currency symbol associated with the country/region.
7.RegionInfo.TwoLetterISORegionName Property gets the two-letter code defined in ISO 3166 for the country/region.