How to: Get Culture Information

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This topic contains code examples for accessing culture information and making your application compatible for global use.

To get the current locale setting for the device

  • Create an instance of CultureInfo for the executing assembly.


Private Sub GetCultureInformation()
    Dim asm As Assembly = Assembly.GetExecutingAssembly()
    Dim ci As CultureInfo = asm.GetName().CultureInfo
    MessageBox.Show(ci.EnglishName)
End Sub


This example requires references to System and the following namespaces:

Show: