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

System.Data.DataSet.HasErrors Property

Gets a value indicating whether there are errors in any of the tables within the DataSet object.

[System.ComponentModel.Browsable(false)]
public bool HasErrors { get; }

Value

true if any table contains an error, false otherwise.

Remarks

This property is set to true if any of the tables contained within the DataSet have their DataTable.HasErrors set to true. It is a simple optimization to check this property before traversing the System.Data.DataTable collection owned by the DataSet object. If a System.Data.DataTable has errors, the DataTable.GetErrors method can be used to retrieve an array of System.Data.DataRow objects that are erroneous.

Requirements

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