Name
ContinueUpdateOnError
Synopsis
Boolean continueUpdateOnError = DataAdapter.ContinueUpdateOnError;
DataAdapter.ContinueUpdateOnError = continueUpdateOnError;
Gets or sets a value indicating whether the
DataAdapter
should raise an exception and stop
processing remaining updates when an error is encountered.
Example
The following example demonstrates how to set the
ContinueUpdateOnError
property:
SqlDataAdapter da = new SqlDataAdapter();
da.ContinueUpdateOnError = true;
Notes
If this value if true
, and an error occurs while
updating a row, the RowError
property of that row
is set to the error information, the update of the row
isn’t performed, and processing continues with the
next row.
The default value of the ContinueUpdateOnError
property false
.