ConstraintCollection Methods
Assembly: System.Data (in System.Data.dll)
| Name | Description | |
|---|---|---|
![]() | Add(Constraint^) | Adds the specified Constraint object to the collection. |
![]() | 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. |
![]() | Add(String^, DataColumn^, DataColumn^) | Constructs a new ForeignKeyConstraint with the specified name, parent column, and child column, and adds the constraint to the collection. |
![]() | Add(String^, array<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. |
![]() | Add(String^, array<DataColumn^>^, array<DataColumn^>^) | Constructs a new ForeignKeyConstraint, with the specified arrays of parent columns and child columns, and adds the constraint to the collection. |
![]() | AddRange(array<Constraint^>^) | Copies the elements of the specified ConstraintCollection array to the end of the collection. |
![]() | CanRemove(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. |
![]() | 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.) |
![]() | CopyTo(array<Constraint^>^, Int32) | Copies the collection objects to a one-dimensional Array instance starting at the specified index. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetEnumerator() | Gets an IEnumerator for the collection.(Inherited from InternalDataCollectionBase.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | IndexOf(Constraint^) | Gets the index of the specified Constraint. |
![]() | IndexOf(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. |
![]() | RemoveAt(Int32) | Removes the Constraint object at the specified index from the collection. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
