Mono Class Library: System.Data.DataSet Overview | Members

System.Data.DataSet.Clear Method

Removes all the data from the DataSet by deleting all the rows from the table collection.

public void Clear ()

Remarks

If the DataSet data source is System.Xml.XmlDataDocument then calling this method raises the NotSupportedException. In such case, the way to remove the data is to traverse all the tables in the table collection and delete the rows one at a time.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0