ConstraintCollection.Clear Method ()


Clears the collection of any Constraint objects.

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

Public Sub Clear

The CollectionChanged event occurs if this action is successful.

The following example clears all constraints from the ConstraintCollection.

Public Shared Sub ClearConstraints(dataSet As DataSet) 
   Dim table As DataTable
   For Each table In dataSet.Tables
End Sub

.NET Framework
Available since 1.1
Return to top