Freigeben über


Application.CurrentCulture-Eigenschaft

Ruft die Kulturinformationen für den aktuellen Thread ab oder legt diese fest.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Shared Property CurrentCulture As CultureInfo
'Usage
Dim value As CultureInfo

value = Application.CurrentCulture

Application.CurrentCulture = value
public static CultureInfo CurrentCulture { get; set; }
public:
static property CultureInfo^ CurrentCulture {
    CultureInfo^ get ();
    void set (CultureInfo^ value);
}
/** @property */
public static CultureInfo get_CurrentCulture ()

/** @property */
public static void set_CurrentCulture (CultureInfo value)
public static function get CurrentCulture () : CultureInfo

public static function set CurrentCulture (value : CultureInfo)

Eigenschaftenwert

Eine CultureInfo, die die Kulturinformationen für den aktuellen Thread darstellt.

Beispiel

Im folgenden Codebeispiel wird diese Eigenschaft abgerufen und ihr Wert in einem Textfeld angezeigt. Dafür ist erforderlich, dass textBox1 in einem Formular platziert wurde.

Private Sub PrintCurrentCulture()
   textBox1.Text = "The current culture is: " & _
      Application.CurrentCulture.EnglishName
End Sub
  
private void PrintCurrentCulture() {
    textBox1.Text = "The current culture is: " +
       Application.CurrentCulture.EnglishName;
 }
   
private:
   void PrintCurrentCulture()
   {
      textBox1->Text = "The current culture is: {0}",
         Application::CurrentCulture->EnglishName;
   }
private void PrintCurrentCulture()
{
    textBox1.set_Text("The current culture is: "
        + Application.get_CurrentCulture().get_EnglishName());
} //PrintCurrentCulture    

.NET Framework-Sicherheit

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Application-Klasse
Application-Member
System.Windows.Forms-Namespace
InputLanguage