System.Data.DataTableReader.GetInt32 C# (CSharp) Метод

GetInt32() публичный Метод

public GetInt32 ( int ordinal ) : int
ordinal int
Результат int
        public override int GetInt32(int ordinal)
        {
            ValidateState(nameof(GetInt32));
            ValidateReader();
            try
            {
                return (int)_currentDataRow[ordinal];
            }
            catch (IndexOutOfRangeException e)
            {
                // thrown by DataColumnCollection
                ExceptionBuilder.TraceExceptionWithoutRethrow(e);
                throw ExceptionBuilder.ArgumentOutOfRange(nameof(ordinal));
            }
        }

Usage Example

Пример #1
0
 private void FillComDebitBillIdIsFalse()
 {
     this.selectlocalbillTableAdapter.Fill(this.lclsupset.selectlocalbill);
     DataTable table = this.lclsupset.Tables["selectlocalbill"];
     DataTableReader read = new DataTableReader(table);
     comboDebitBillNumber.Properties.Items.Clear();
     while (read.Read())
     {
         comboDebitBillNumber.Properties.Items.Add(read.GetInt32(1).ToString());
     }
 }
All Usage Examples Of System.Data.DataTableReader::GetInt32