Files
mono/mcs/class/System.Data/System.Data.OleDb/OleDbErrorCollection.cs
T
Rodrigo Moya ab46838857 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ChangeDatabase): implemented.

	* System.Data.OleDb/OleDbException.cs (OleDbException): added internal
	constructor.
	(ErrorCode, Message, Source, Errors): implemented.

	* System.Data.OleDb/OleDbError.cs: implemented the full class.

	* System.Data.OleDb/libgda.cs: added more libgda functions.

	* System.Data.OleDb/TestOleDb.cs (TestOleDb): display properties for
	the opened connection.

svn path=/trunk/mcs/; revision=6725
2002-08-18 18:35:06 +00:00

81 lines
1.3 KiB
C#

//
// System.Data.OleDb.OleDbErrorCollection
//
// Authors:
// Rodrigo Moya ([email protected])
// Tim Coleman ([email protected])
//
// Copyright (C) Rodrigo Moya, 2002
// Copyright (C) Tim Coleman, 2002
//
using System.Collections;
using System.Data;
using System.Data.Common;
namespace System.Data.OleDb
{
public sealed class OleDbErrorCollection : ICollection, IEnumerable
{
#region Fields
ArrayList list;
#endregion // Fields
#region Properties
public int Count {
get {
return list.Count;
}
}
public OleDbError this[int index] {
get {
return (OleDbError) list[index];
}
}
object ICollection.SyncRoot {
get {
return list.SyncRoot;
}
}
bool ICollection.IsSynchronized {
get {
return list.IsSynchronized;
}
}
#endregion // Properties
#region Methods
internal void Add (OleDbError error)
{
list.Add ((object) error);
}
[MonoTODO]
public void CopyTo (Array array, int index)
{
((OleDbError[])(list.ToArray ())).CopyTo (array, index);
throw new NotImplementedException ();
}
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
IEnumerator IEnumerable.GetEnumerator ()
{
return GetEnumerator ();
}
#endregion // Methods
}
}