Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RaiseRowChanged()

DataRowChangeEventArgs System.Data.DataTable.RaiseRowChanged ( DataRowChangeEventArgs args,
DataRow eRow,
DataRowAction eAction )
inlineprivateinherited

Definition at line 3686 of file DataTable.cs.

3687 {
3688 try
3689 {
3691 {
3693 }
3694 else if (DataRowAction.Delete == eAction && eRow._newRecord == -1 && (IsTypedDataTable || _onRowDeletedDelegate != null))
3695 {
3696 if (args == null)
3697 {
3698 args = new DataRowChangeEventArgs(eRow, eAction);
3699 }
3701 }
3702 }
3703 catch (Exception e) when (ADP.IsCatchableExceptionType(e))
3704 {
3705 ExceptionBuilder.TraceExceptionWithoutRethrow(e);
3706 }
3707 return args;
3708 }
static bool IsCatchableExceptionType(Exception e)
Definition ADP.cs:790
virtual void OnRowDeleted(DataRowChangeEventArgs e)
DataRowChangeEventArgs OnRowChanged(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
DataRowChangeEventHandler _onRowDeletedDelegate
Definition DataTable.cs:170
bool UpdatingCurrent(DataRow row, DataRowAction action)
DataRowChangeEventHandler _onRowChangedDelegate
Definition DataTable.cs:164

References System.Data.DataTable._onRowChangedDelegate, System.Data.DataTable._onRowDeletedDelegate, System.Runtime.Serialization.Dictionary, System.Data.Common.ADP.IsCatchableExceptionType(), System.Data.DataTable.IsTypedDataTable, System.Data.DataTable.OnRowChanged(), System.Data.DataTable.OnRowDeleted(), System.Data.ExceptionBuilder.TraceExceptionWithoutRethrow(), and System.Data.DataTable.UpdatingCurrent().

Referenced by System.Data.DataTable.InsertRow(), System.Data.DataTable.LoadRow(), System.Data.DataTable.SetDataRowWithLoadOption(), and System.Data.DataTable.SetNewRecordWorker().