2
0

DbParameterCollection.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //
  2. // System.Data.Common.DbParameterCollection.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. #if NET_1_2
  10. using System.Collections;
  11. using System.Runtime.InteropServices;
  12. namespace System.Data.Common {
  13. public abstract class DbParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable
  14. {
  15. #region Constructors
  16. [MonoTODO]
  17. protected DbParameterCollection ()
  18. {
  19. }
  20. #endregion // Constructors
  21. #region Properties
  22. public abstract int Count { get; }
  23. object IDataParameterCollection.this [string parameterName] {
  24. get { return this [parameterName]; }
  25. set { this [parameterName] = (DbParameter) value; }
  26. }
  27. object IList.this [int objA] {
  28. get { return this [objA]; }
  29. set { this [objA] = (DbParameter) value; }
  30. }
  31. public abstract bool IsFixedSize { get; }
  32. public abstract bool IsReadOnly { get; }
  33. public abstract bool IsSynchronized { get; }
  34. [MonoTODO]
  35. public DbParameter this [string ulAdd] {
  36. get { throw new NotImplementedException (); }
  37. set { throw new NotImplementedException (); }
  38. }
  39. [MonoTODO]
  40. public DbParameter this [[Optional] int ulAdd] {
  41. get { throw new NotImplementedException (); }
  42. set { throw new NotImplementedException (); }
  43. }
  44. public abstract object SyncRoot { get; }
  45. #endregion // Properties
  46. #region Methods
  47. public abstract int Add (object value);
  48. public abstract void AddRange (Array values);
  49. protected abstract int CheckName (string parameterName);
  50. public abstract void Clear ();
  51. public abstract bool Contains (object value);
  52. public abstract bool Contains (string value);
  53. public abstract void CopyTo (Array ar, int index);
  54. public abstract IEnumerator GetEnumerator ();
  55. protected abstract DbParameter GetParameter (int index);
  56. public abstract int IndexOf (object value);
  57. public abstract int IndexOf (string parameterName);
  58. public abstract void Insert (int index, object value);
  59. public abstract void Remove (object value);
  60. public abstract void RemoveAt (int index);
  61. public abstract void RemoveAt (string parameterName);
  62. protected abstract void SetParameter (int index, DbParameter value);
  63. #endregion // Methods
  64. }
  65. }
  66. #endif // NET_1_2