Update Reference Sources to .NET Framework 4.6
[mono.git] / mcs / class / referencesource / System.Data / System / Data / IDataRecord.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="IDataRecord.cs" company="Microsoft">
3 //      Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">markash</owner>
6 // <owner current="true" primary="false">laled</owner>
7 //------------------------------------------------------------------------------
8
9 namespace System.Data {
10     using System;
11
12     // This interface is already shipped. So no more changes!
13     
14     public interface IDataRecord {
15
16         int FieldCount { get;}
17
18         object this [ int i ] { get;}
19
20         object this [ String name ] { get;}
21
22         String GetName(int i);
23
24         String GetDataTypeName(int i);
25
26         Type GetFieldType(int i);
27
28         Object GetValue(int i);
29
30         int GetValues(object[] values);
31
32         int GetOrdinal(string name);
33
34         bool GetBoolean(int i);
35
36         byte GetByte(int i);
37
38         long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length);
39
40         char GetChar(int i);
41
42         long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length);
43
44         Guid GetGuid(int i);
45
46         Int16 GetInt16(int i);
47
48         Int32 GetInt32(int i);
49
50         Int64 GetInt64(int i);
51
52         float GetFloat(int i);
53
54         double GetDouble(int i);
55
56         String GetString(int i);
57
58         Decimal GetDecimal(int i);
59
60         DateTime GetDateTime(int i);
61
62         IDataReader GetData(int i);
63
64         bool IsDBNull(int i);
65     }
66 }