This documentation is archived and is not being maintained.

CultureAndRegionInfoBuilder::ConsoleFallbackUICulture Property

Gets or sets an alternate user interface culture suitable for console applications when the default graphic user interface culture is inappropriate.

Namespace:  System.Globalization
Assembly:  sysglobl (in sysglobl.dll)

public:
property CultureInfo^ ConsoleFallbackUICulture {
	CultureInfo^ get ();
	void set (CultureInfo^ value);
}

Property Value

Type: System.Globalization::CultureInfo
An alternate culture that is used to read and display text on the console.

ExceptionCondition
ArgumentException

In a set operation where the specified culture is not nullptr, the ConsoleFallbackUICulture property of the specified culture is not the same as the specified culture.

In a get operation, the ConsoleFallbackUICulture property corresponds to the GetConsoleFallbackUICulture method. Specify nullptr in a set operation to indicate that the culture defined by the current CultureAndRegionInfoBuilder object is the alternate user interface culture. If you attempt to set the property to a culture that itself has a different Console Fallback UI Culture, then it will be assigned that final "leaf" culture.

Languages such as Arabic, Hebrew, Persian, Urdu, and Syriac are based on bi-directional text. Windows applications, which employ a graphical user interface, support bi-directional languages. However, console applications, which employ the text user interface of the operating system console, do not provide bi-directional support. Consequently, if a console application is localized to Arabic or Hebrew, it displays unreadable text on the console screen.

The user interface culture specifies the resources that an application needs to support user input and output, and by default is the same as the operating system culture. For example, the CurrentUICulture property returns an Arabic culture for an Arabic operating system. The application should use the ConsoleFallbackUICulture property to retrieve a neutral culture suitable for a console application user interface.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: