System.Threading.Thread.CurrentUICulture Property

Gets or sets the current culture used by the Resource Manager to look up culture-specific resources at run time.

Syntax

public System.Globalization.CultureInfo CurrentUICulture { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The UI culture specifies the resources an application needs to support user input and output, and by default is the same as the operating system culture. See the System.Globalization.CultureInfo class to learn about culture names and identifiers, the differences between invariant, neutral, and specific cultures, and the way culture information affects threads and application domains. See the System.Globalization.CultureInfo.CurrentUICulture property to learn how a thread's default UI culture is determined.

The System.Globalization.CultureInfo returned by this property can be a neutral culture. Neutral cultures should not be used with formatting methods such as string.Format(IFormatProvider, string, Object[]), DateTime.ToString(string, IFormatProvider), and Convert.ToString(char, IFormatProvider). Use the System.Globalization.CultureInfo.CreateSpecificCulture(string) method to get a specific culture, or use the Thread.CurrentCulture property.

Note:

The System.Globalization.CultureInfo.CreateSpecificCulture(string) method throws ArgumentException for the neutral cultures "zh-Hant" ("zh-CHT") and "zh-Hans" ("zh-CHS").

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0