Represents the collection of relations, each of which allows navigation between related parent/child tables.
Object
BaseCollection
RelationsCollection
[Visual Basic] MustInherit Public Class RelationsCollection Inherits BaseCollection [C#] public abstract class RelationsCollection : BaseCollection [C++] public __gc __abstract class RelationsCollection : public BaseCollection [JScript] public abstract class RelationsCollection extends BaseCollection
The RelationsCollection contains all of the DataRelation objects for a DataSet. To access the collection, use the Relations property.
The RelationsCollection has the standard collection methods Add, Clear, and Remove as well as an All method to return the collection as an array.
Namespace: System.Data
Assembly: System.Data.dll
RelationsCollection Members | System.Data Namespace | Add | DataSet | Relations | DataRelation | Remove