System.Data.ConstraintCollection.Remove Method

Removes the specified System.Data.Constraint from the collection.

Syntax

public void Remove (Constraint constraint)

Parameters

constraint
The System.Data.Constraint to remove.

Remarks

Before using the Remove method, you can use the ConstraintCollection.Contains(string) method to determine whether the collection contains the target System.Data.Constraint, and the ConstraintCollection.CanRemove(Constraint) method to determine whether a System.Data.Constraint can be removed.

The ConstraintCollection.CollectionChanged event occurs if the constraint is successfully removed.

Requirements

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