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

◆ Delete() [1/2]

void System.Data.DataView.Delete ( DataRow row)
inlinepackageinherited

Definition at line 676 of file DataView.cs.

677 {
678 if (row == null)
679 {
680 return;
681 }
682 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataView.Delete|API> {0}, row={1}", ObjectID, row._objectID);
683 try
684 {
685 CheckOpen();
686 if (row == _addNewRow)
687 {
689 return;
690 }
691 if (!AllowDelete)
692 {
693 throw ExceptionBuilder.CanNotDelete();
694 }
695 row.Delete();
696 }
697 finally
698 {
699 DataCommonEventSource.Log.ExitScope(scopeId);
700 }
701 }
void FinishAddNew(bool success)
Definition DataView.cs:775

References System.Data.DataView._addNewRow, System.Data.DataView.AllowDelete, System.Data.ExceptionBuilder.CanNotDelete(), System.Data.DataView.CheckOpen(), System.Data.DataView.FinishAddNew(), System.Data.DataCommonEventSource.Log, and System.Data.DataView.ObjectID.