Methods
- Add(Constraint) Adds the specified Constraint object to the collection.
-
Add(String,
Data Constructs a new UniqueConstraint with the specified name, DataColumn, and value that indicates whether the column is a primary key, and adds it to the collection.Column, Boolean) -
Add(String,
Data Constructs a new ForeignKeyConstraint with the specified name, parent column, and child column, and adds the constraint to the collection.Column, Data Column) -
Add(String,
Data Constructs a new UniqueConstraint with the specified name, array of DataColumn objects, and value that indicates whether the column is a primary key, and adds it to the collection.Column[], Boolean) -
Add(String,
Data Constructs a new ForeignKeyConstraint, with the specified arrays of parent columns and child columns, and adds the constraint to the collection.Column[], Data Column[]) -
Add
Range(Constraint[]) Copies the elements of the specified ConstraintCollection array to the end of the collection. -
Can
Remove(Constraint) Indicates whether a Constraint can be removed. - Clear() Clears the collection of any Constraint objects.
- Contains(String) Indicates whether the Constraint object specified by name exists in the collection.
-
Copy
To(Constraint[], Copies the collection objects to a one-dimensional Array instance starting at the specified index.Int32) -
Index
Of(Constraint) Gets the index of the specified Constraint. -
Index
Of(String) Gets the index of the Constraint specified by name. - Remove(Constraint) Removes the specified Constraint from the collection.
- Remove(String) Removes the Constraint object specified by name from the collection.
-
Remove
At(Int32) Removes the Constraint object at the specified index from the collection.
Properties
Events
-
Collection
Changed Occurs whenever the ConstraintCollection is changed because of Constraint objects being added or removed.