Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
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.
Example
Private Sub GetCultureInformation()
Dim asm As Assembly = Assembly.GetExecutingAssembly()
Dim ci As CultureInfo = asm.GetName().CultureInfo
MsgBox(ci.EnglishName)
End Sub
private void GetCultureInformation()
{
Assembly asm = Assembly.GetExecutingAssembly();
CultureInfo ci = asm.GetName().CultureInfo;
MessageBox.Show(ci.EnglishName);
}
Compiling the Code
This example requires references to System and the following namespaces: