DataRelationCollection::Remove Method (DataRelation^)
.NET Framework (current version)
Removes the specified relation from the collection.
Assembly: System.Data (in System.Data.dll)
Parameters
- relation
-
Type:
System.Data::DataRelation^
The relation to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | The relation is a null value. |
| ArgumentException | The relation does not belong to the collection. |
The CollectionChanged event is fired if the remove operation succeeds. Note that removing the relation does not remove any associated constraint objects.
.NET Framework
Available since 1.1
Available since 1.1
Show: