Adds the relation to the collection. An ArgumentNullException is thrown if this relation is null. An ArgumentException is thrown if this relation already belongs to this collection or belongs to another collection A DuplicateNameException is thrown if this collection already has a relation with the same name (case insensitive). An InvalidConstraintException is thrown if the relation has entered an invalid state since it's been created. The CollectionChanged event is fired if it succeeds.
[Visual Basic] Overloads Public Sub Add( _ ByVal relation As DataRelation _ ) [C#] public void Add( DataRelation relation ); [C++] public: void Add( DataRelation* relation ); [JScript] public function Add( relation : DataRelation );
RelationsCollection Class | RelationsCollection Members | System.Data Namespace | RelationsCollection.Add Overload List