System.Data.DataSet.Locale Property

Gets or sets the locale information used to compare strings within the table.

Syntax

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

Value

A System.Globalization.CultureInfo that contains data about the user's machine locale. The default is a null reference.

Remarks

The DataSet.Locale property specifies the locale for which sorting applies.

By default, setting the DataSet.Locale for a System.Data.DataSet also sets the DataSet.Locale for each System.Data.DataTable object in that DataSet to the same value.

Note:

In columns that contain expressions, the StringComparison.InvariantCulture is used. The StringComparison.CurrentCulture is ignored.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0