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

◆ RaiseRowChanging() [1/2]

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

Definition at line 3710 of file DataTable.cs.

3711 {
3713 {
3714 eRow._inChangingEvent = true;
3715 try
3716 {
3718 }
3719 finally
3720 {
3721 eRow._inChangingEvent = false;
3722 }
3723 }
3724 else if (DataRowAction.Delete == eAction && eRow._newRecord != -1 && (IsTypedDataTable || _onRowDeletingDelegate != null))
3725 {
3726 eRow._inDeletingEvent = true;
3727 try
3728 {
3729 if (args == null)
3730 {
3731 args = new DataRowChangeEventArgs(eRow, eAction);
3732 }
3734 }
3735 finally
3736 {
3737 eRow._inDeletingEvent = false;
3738 }
3739 }
3740 return args;
3741 }
DataRowChangeEventHandler _onRowDeletingDelegate
Definition DataTable.cs:168
virtual void OnRowDeleting(DataRowChangeEventArgs e)
DataRowChangeEventArgs OnRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction)
bool UpdatingCurrent(DataRow row, DataRowAction action)
DataRowChangeEventHandler _onRowChangingDelegate
Definition DataTable.cs:166

References System.Data.DataTable._onRowChangingDelegate, System.Data.DataTable._onRowDeletingDelegate, System.Runtime.Serialization.Dictionary, System.Data.DataTable.IsTypedDataTable, System.Data.DataTable.OnRowChanging(), System.Data.DataTable.OnRowDeleting(), and System.Data.DataTable.UpdatingCurrent().

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