System.Data.DataTable.SetNewRecord C# (CSharp) Method

SetNewRecord() private method

private SetNewRecord ( DataRow row, int proposedRecord, DataRowAction action = DataRowAction.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false ) : void
row DataRow
proposedRecord int
action DataRowAction
isInMerge bool
fireEvent bool
suppressEnsurePropertyChanged bool
return void
        internal void SetNewRecord(DataRow row, int proposedRecord, DataRowAction action = DataRowAction.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false)
        {
            Exception deferredException = null;
            SetNewRecordWorker(row, proposedRecord, action, isInMerge, suppressEnsurePropertyChanged, -1, fireEvent, out deferredException); // we are going to call below overload from insert
            if (deferredException != null)
            {
                throw deferredException;
            }
        }
DataTable