Export (0) Print
Expand All

CultureInfo.UseUserOverride Property

Gets a value indicating whether the current CultureInfo uses the user-selected culture settings.

[Visual Basic]
Public ReadOnly Property UseUserOverride As Boolean
[C#]
public bool UseUserOverride {get;}
[C++]
public: __property bool get_UseUserOverride();
[JScript]
public function get UseUserOverride() : Boolean;

Property Value

true if the current CultureInfo uses the user-selected culture settings; otherwise, false.

Remarks

The user might choose to override some of the values associated with the current culture of Windows through Regional and Language Options (or Regional Options or Regional Settings) in Control Panel. For example, the user might choose to display the date in a different format or to use a currency other than the default for the culture.

If UseUserOverride is true and the specified culture matches the current culture of Windows, the CultureInfo uses those overrides, including user settings for the properties of the DateTimeFormatInfo instance returned by the DateTimeFormat property, the properties of the NumberFormatInfo instance returned by the NumberFormat property, and the properties of the CompareInfo instance returned by the CompareInfo property. If the user settings are incompatible with the culture associated with the CultureInfo (for example, if the selected calendar is not one of the OptionalCalendars), the results of the methods and the values of the properties are undefined.

This property is set when the CultureInfo is created.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

CultureInfo Class | CultureInfo Members | System.Globalization Namespace

Show:
© 2014 Microsoft