Name
FillErrorEventHandler
Synopsis
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(objectsender
, FillErrorEventArgse
);
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.