Export (0) Print
Expand All

DataRelationCollection.Remove Method

Removes the specified relation from the collection.

Overload List

Removes the specified relation from the collection. An ArgumentNullException is generated if this relation is null. An ArgumentException is generated if this relation doesn't belong to this collection. The CollectionChanged event is fired if it succeeds.

Note that removing the relation does not remove any associated constraint objects.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Sub Remove(DataRelation)
[C#] public void Remove(DataRelation);
[C++] public: void Remove(DataRelation*);
[JScript] public function Remove(DataRelation);

Removes the relation with the specified name from the collection. An IndexOutOfRangeException is generated if this collection doesn't have a relation with that name. The CollectionChanged event is fired if it succeeds.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Sub Remove(String)
[C#] public void Remove(string);
[C++] public: void Remove(String*);
[JScript] public function Remove(String);

See Also

DataRelationCollection Class | DataRelationCollection Members | System.Data Namespace

Show:
© 2014 Microsoft