DataRelationCollection.Remove Method (DataRelation)

 

Removes the specified relation from the collection.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

member Remove : 
        relation:DataRelation -> unit

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
Return to top
Show: