System.Data.DataSet.EnforceConstraints Property

Gets or sets a value indicating whether constraint rules are followed when attempting any update operation.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool EnforceConstraints { set; get; }

Value

true, if rules are enforced, false otherwise. The default is true.

Remarks

Constraints are set at the System.Data.DataTable level (DataTable.Constraints property). For more information about creating constraints, see Adding Constraints to a Table.

Requirements

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