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 CultureInfo ConsoleFallbackUICulture { get; set; }
/** @property */
public CultureInfo get_ConsoleFallbackUICulture ()

/** @property */
public void set_ConsoleFallbackUICulture (CultureInfo value)

public function get ConsoleFallbackUICulture () : CultureInfo

public function set ConsoleFallbackUICulture (value : CultureInfo)

Not applicable.

Property Value

An alternate neutral culture that is used to read and display text on the console.

Exception typeCondition


In a set operation where the specified culture is not a null reference (Nothing in Visual Basic), 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 a null reference (Nothing in Visual Basic) in a set operation to indicate that the culture defined by the current CultureAndRegionInfoBuilder object is the alternate user interface culture.

Languages such as Arabic, Hebrew, Farsi, 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.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0