[To be supplied.]
Constructs a new ForeignKeyConstraint, and adds the constraint to the collection. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add(String, DataColumn, DataColumn)
[C#] public void Add(String, DataColumn, DataColumn);
[C++] public: void Add(String*, DataColumn, DataColumn);
[JScript] public function Add(String, DataColumn, DataColumn);
Constructs a new ForeignKeyConstraint, and adds the constraint to the collection. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add(String, DataColumn(), DataColumn())
[C#] public void Add(String, DataColumn[], DataColumn[]);
[C++] public: void Add(String*, DataColumn[], DataColumn[]);
[JScript] public function Add(String, DataColumn[], DataColumn[]);
Constructs a new UniqueConstraint, and adds the constraint to the collection. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add(String, DataColumn, Boolean)
[C#] public void Add(String, DataColumn, bool);
[C++] public: void Add(String*, DataColumn, bool);
[JScript] public function Add(String, DataColumn, Boolean);
Adds the constraint to the collection. An ArgumentNullException is thrown if this column is null. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add(Constraint)
[C#] public void Add(Constraint);
[C++] public: void Add(Constraint*);
[JScript] public function Add(Constraint);
Constructs a new UniqueConstraint, and adds the constraint to the collection. An ArgumentException is thrown if this constraint already belongs to this collection, or belongs to another collection. A DuplicateNameException is thrown if this collection already has a constraint with the same name (case insensitive). The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add(String, DataColumn(), Boolean)
[C#] public void Add(String, DataColumn[], bool);
[C++] public: void Add(String*, DataColumn[], bool);
[JScript] public function Add(String, DataColumn[], Boolean);
ConstraintsCollection Class | ConstraintsCollection Members | System.Data Namespace