Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConstraintCollection.Add Method

Adds a Constraint object to the collection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by the XNA Framework Add(Constraint) Adds the specified Constraint object to the collection.
Public method Supported by the XNA Framework Add(String, DataColumn, Boolean) 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.
Public method Supported by the XNA Framework Add(String, DataColumn, DataColumn) Constructs a new ForeignKeyConstraint with the specified name, parent column, and child column, and adds the constraint to the collection.
Public method Supported by the XNA Framework Add(String, DataColumn[], Boolean) 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.
Public method Supported by the XNA Framework Add(String, DataColumn[], DataColumn[]) Constructs a new ForeignKeyConstraint, with the specified arrays of parent columns and child columns, and adds the constraint to the collection.
Top
Show:
© 2015 Microsoft