コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 public void CopyTo (OleDbError[] array, int index) {
     this.items.CopyTo(array, index);
 }
コード例 #5
0
ファイル: OleDbErrorCollection.cs プロジェクト: nlhepler/mono
		internal void Add (OleDbError error)
		{
			items.Add ((object) error);
		}
コード例 #6
0
 internal void Add(OleDbError error)
 {
     items.Add((object)error);
 }
コード例 #7
0
		public void CopyTo (OleDbError [] array, int index)
		{
			base.CopyTo (array, index);
		}