Share via


AlterTableConstraintModificationStatement.ConstraintEnforcement Property

Gets or sets the constraint enforcement value.

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)

Syntax

'Declaration
Public Property ConstraintEnforcement As ConstraintEnforcement
public ConstraintEnforcement ConstraintEnforcement { get; set; }
public:
property ConstraintEnforcement ConstraintEnforcement {
    ConstraintEnforcement get ();
    void set (ConstraintEnforcement value);
}
member ConstraintEnforcement : ConstraintEnforcement with get, set
function get ConstraintEnforcement () : ConstraintEnforcement
function set ConstraintEnforcement (value : ConstraintEnforcement)

Property Value

Type: Microsoft.Data.Schema.ScriptDom.Sql.ConstraintEnforcement
Returns a ConstraintEnforcement enumeration value.

Remarks

When disabled, future inserts or updates to the column are not validated against the constraint conditions.

.NET Framework Security

See Also

Reference

AlterTableConstraintModificationStatement Class

Microsoft.Data.Schema.ScriptDom.Sql Namespace