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( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access