IDataRecord.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //------------------------------------------------------------------------------
  2. // <copyright file="IDataRecord.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">[....]</owner>
  6. // <owner current="true" primary="false">[....]</owner>
  7. //------------------------------------------------------------------------------
  8. namespace System.Data {
  9. using System;
  10. // This interface is already shipped. So no more changes!
  11. public interface IDataRecord {
  12. int FieldCount { get;}
  13. object this [ int i ] { get;}
  14. object this [ String name ] { get;}
  15. String GetName(int i);
  16. String GetDataTypeName(int i);
  17. Type GetFieldType(int i);
  18. Object GetValue(int i);
  19. int GetValues(object[] values);
  20. int GetOrdinal(string name);
  21. bool GetBoolean(int i);
  22. byte GetByte(int i);
  23. long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length);
  24. char GetChar(int i);
  25. long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length);
  26. Guid GetGuid(int i);
  27. Int16 GetInt16(int i);
  28. Int32 GetInt32(int i);
  29. Int64 GetInt64(int i);
  30. float GetFloat(int i);
  31. double GetDouble(int i);
  32. String GetString(int i);
  33. Decimal GetDecimal(int i);
  34. DateTime GetDateTime(int i);
  35. IDataReader GetData(int i);
  36. bool IsDBNull(int i);
  37. }
  38. }