DbDataRecord.GetChars(Int32, Int64, Char[], Int32, Int32) 方法

定义

以字符数组的形式返回指定列的值。

public:
 abstract long GetChars(int i, long dataIndex, cli::array <char> ^ buffer, int bufferIndex, int length);
public:
 virtual long GetChars(int i, long dataIndex, cli::array <char> ^ buffer, int bufferIndex, int length);
public abstract long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length);
public abstract long GetChars (int i, long dataIndex, char[]? buffer, int bufferIndex, int length);
public long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
abstract member GetChars : int * int64 * char[] * int * int -> int64
override this.GetChars : int * int64 * char[] * int * int -> int64
Public MustOverride Function GetChars (i As Integer, dataIndex As Long, buffer As Char(), bufferIndex As Integer, length As Integer) As Long
Public Function GetChars (i As Integer, dataIndex As Long, buffer As Char(), bufferIndex As Integer, length As Integer) As Long

参数

i
Int32

列序号。

dataIndex
Int64

要将数据复制到其中的缓冲区。

buffer
Char[]

复制到缓冲区的最大长度。

bufferIndex
Int32

从缓冲区中开始的点。

length
Int32

从数据源中开始的点。

返回

指定列的值。

实现

注解

不执行任何转换,因此检索的数据必须已经是字符数组。

适用于

另请参阅