This delegate represents the method that will handle the System.Data.Common.DbDataAdapter.FillError event. This error can occur for many reasons: for example, if the data can’t be converted into a CLR data type without losing precision or an enforced constraint is violated. The System.Data.Common.DbDataAdapter.FillError event allows the user to decide whether the fill operation should continue after the error occurs. A System.Data.Common.DbDataAdapter.FillError event isn’t fired if the error occurs at the data source. If you don’t handle the System.Data.Common.DbDataAdapter.FillError event, a System.InvalidCastException is thrown.

public delegate void FillErrorEventHandler(object sender, FillErrorEventArgs e);

Associated Events

System.Data.Common.DbDataAdapter.FillError( ), System.Data.OleDb.OleDbDataAdapter.FillError( ), System.Data.OracleClient.OracleDataAdapter.FillError( ), System.Data.SqlClient.SqlDataAdapter.FillError( )

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.