Export (0) Print
Expand All

DataRelationCollection Methods

The DataRelationCollection type exposes the following members.

  Name Description
Public method Add(DataRelation) Adds a DataRelation to the DataRelationCollection.
Public method Add(DataColumn, DataColumn) Creates a DataRelation with a specified parent and child column, and adds it to the collection.
Public method Add(DataColumn[], DataColumn[]) Creates a DataRelation with the specified parent and child columns, and adds it to the collection.
Public method Add(String, DataColumn, DataColumn) Creates a DataRelation with the specified name, and parent and child columns, and adds it to the collection.
Public method Add(String, DataColumn[], DataColumn[]) Creates a DataRelation with the specified name and arrays of parent and child columns, and adds it to the collection.
Public method Add(String, DataColumn, DataColumn, Boolean) Creates a DataRelation with the specified name, parent and child columns, with optional constraints according to the value of the createConstraints parameter, and adds it to the collection.
Public method Add(String, DataColumn[], DataColumn[], Boolean) Creates a DataRelation with the specified name, arrays of parent and child columns, and value specifying whether to create a constraint, and adds it to the collection.
Protected method AddCore Performs verification on the table.
Public method AddRange Copies the elements of the specified DataRelation array to the end of the collection.
Public method CanRemove Verifies whether the specified DataRelation can be removed from the collection.
Public method Clear Clears the collection of any relations.
Public method Contains Verifies whether a DataRelation with the specific name (case insensitive) exists in the collection.
Public method 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 CopyTo(DataRelation[], Int32) Copies the collection of DataRelation objects starting at the specified index.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDataSet Infrastructure. This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Public method GetEnumerator Gets an IEnumerator for the collection. (Inherited from InternalDataCollectionBase.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf(DataRelation) Gets the index of the specified DataRelation object.
Public method IndexOf(String) Gets the index of the DataRelation specified by name.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCollectionChanged Raises the CollectionChanged event.
Protected method OnCollectionChanging Raises the CollectionChanged event.
Public method Remove(DataRelation) Removes the specified relation from the collection.
Public method Remove(String) Removes the relation with the specified name from the collection.
Public method RemoveAt Removes the relation at the specified index from the collection.
Protected method RemoveCore Performs a verification on the specified DataRelation object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft