ConstraintCollection::AddRange Method (array<Constraint^>^)
.NET Framework (current version)
Copies the elements of the specified ConstraintCollection array to the end of the collection.
Assembly: System.Data (in System.Data.dll)
Parameters
- constraints
-
Type:
array<System.Data::Constraint^>^
An array of ConstraintCollection objects to add to the collection.
If BeginInit has been called, AddRange does not add any objects to the collection until EndInit is called. At the time that EndInit is called, the collection will be populated with the items specified in the most recent call to AddRange. If AddRange is called multiple times within a BeginInit / EndInit sequence, only those items specified in the most recent call to AddRange are added.
The following example creates primary and foreign key constraints, and adds them to the ConstraintCollection.
.NET Framework
Available since 1.1
Available since 1.1
Show: