readonly private ArrayList items; // WebData 106655 internal OleDbErrorCollection(UnsafeNativeMethods.IErrorInfo errorInfo) { ArrayList items = new ArrayList(); Bid.Trace("<oledb.IUnknown.QueryInterface|API|OS> IErrorRecords\n"); UnsafeNativeMethods.IErrorRecords errorRecords = (errorInfo as UnsafeNativeMethods.IErrorRecords); if (null != errorRecords) { int recordCount = errorRecords.GetRecordCount(); Bid.Trace("<oledb.IErrorRecords.GetRecordCount|API|OS|RET> RecordCount=%d\n", recordCount); for (int i = 0; i < recordCount; ++i) { OleDbError error = new OleDbError(errorRecords, i); items.Add(error); } } this.items = items; }
internal OleDbErrorCollection(UnsafeNativeMethods.IErrorInfo errorInfo) { ArrayList items = new ArrayList(); UnsafeNativeMethods.IErrorRecords errorRecords = (errorInfo as UnsafeNativeMethods.IErrorRecords); if (null != errorRecords) { int recordCount = errorRecords.GetRecordCount(); for (int i = 0; i < recordCount; ++i) { OleDbError error = new OleDbError(errorRecords, i); items.Add(error); } } this.items = items; }
internal OleDbErrorCollection(UnsafeNativeMethods.IErrorInfo errorInfo) { ArrayList list = new ArrayList(); Bid.Trace("<oledb.IUnknown.QueryInterface|API|OS> IErrorRecords\n"); UnsafeNativeMethods.IErrorRecords errorRecords = errorInfo as UnsafeNativeMethods.IErrorRecords; if (errorRecords != null) { int recordCount = errorRecords.GetRecordCount(); Bid.Trace("<oledb.IErrorRecords.GetRecordCount|API|OS|RET> RecordCount=%d\n", recordCount); for (int i = 0; i < recordCount; i++) { OleDbError error = new OleDbError(errorRecords, i); list.Add(error); } } this.items = list; }
public void CopyTo (OleDbError[] array, int index) { this.items.CopyTo(array, index); }
internal void Add (OleDbError error) { items.Add ((object) error); }
internal void Add(OleDbError error) { items.Add((object)error); }
public void CopyTo (OleDbError [] array, int index) { base.CopyTo (array, index); }