Indicates whether the System.Data.Constraint object specified by name exists in the collection.
- name
- The Constraint.ConstraintName of the constraint.
true if the collection contains the specified constraint; otherwise, false.
Use the ConstraintCollection.Contains(string) method to determine whether the specified System.Data.Constraint exists before trying to remove it from the collection. You can also use the ConstraintCollection.CanRemove(Constraint) method to determine whether a System.Data.Constraint can be removed.