Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ConstraintCollection Methods

ConstraintCollection Methods

The ConstraintCollection type exposes the following members.

  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.
Public method Supported by the XNA Framework AddRange Copies the elements of the specified ConstraintCollection array to the end of the collection.
Public method Supported by the XNA Framework CanRemove Indicates whether a Constraint can be removed.
Public method Supported by the XNA Framework Clear Clears the collection of any Constraint objects.
Public method Supported by the XNA Framework Contains Indicates whether the Constraint object specified by name exists in the collection.
Public method Supported by the XNA Framework CopyTo(Array, Int32) Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index. (Inherited from InternalDataCollectionBase.)
Public method Supported by the XNA Framework CopyTo(Constraint[], Int32) Copies the collection objects to a one-dimensional Array instance starting at the specified index.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Supported by the XNA Framework GetEnumerator Gets an IEnumerator for the collection. (Inherited from InternalDataCollectionBase.)
Public method Supported by the XNA Framework GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework IndexOf(Constraint) Gets the index of the specified Constraint.
Public method Supported by the XNA Framework IndexOf(String) Gets the index of the Constraint specified by name.
Public method Supported by the XNA Framework Remove(Constraint) Removes the specified Constraint from the collection.
Public method Supported by the XNA Framework Remove(String) Removes the Constraint object specified by name from the collection.
Public method Supported by the XNA Framework RemoveAt Removes the Constraint object at the specified index from the collection.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft