DataSet.CaseSensitive DataSet.CaseSensitive DataSet.CaseSensitive DataSet.CaseSensitive Property

定义

获取或设置一个值,该值指示 DataTable 对象中的字符串比较是否区分大小写。Gets or sets a value indicating whether string comparisons within DataTable objects are case-sensitive.

public:
 property bool CaseSensitive { bool get(); void set(bool value); };
[System.Data.DataSysDescription("DataSetCaseSensitiveDescr")]
public bool CaseSensitive { get; set; }
member this.CaseSensitive : bool with get, set
Public Property CaseSensitive As Boolean

属性值

true如果字符串比较区分大小写,则为; 否则为。否则为falsetrue if string comparisons are case-sensitive; otherwise, false. 默认值为 falseThe default is false.

示例

下面的示例将切换CaseSensitive属性。The following example toggles the CaseSensitive property.

DataSet1.CaseSensitive = DataSet1.CaseSensitive Xor True

注解

使用方法时DataSetDataTable CaseSensitive Select属性会影响对中包含的每个对象执行排序、搜索和筛选操作的方式。The CaseSensitive property affects how sorting, searching, and filtering operations are performed on each DataTable object contained in a DataSet when using the Select method.

默认情况下,设置CaseSensitive的属性DataSet还会将每CaseSensitive个关联DataTable的的属性设置为相同的值。By default, setting the CaseSensitive property for a DataSet also sets the CaseSensitive property of each associated DataTable to the same value.

适用于

另请参阅