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

定义

从给定的缓冲区偏移量开始,按指定的列偏移量将字符流作为数组读入缓冲区。

public long GetChars (int ordinal, long dataIndex, char[] buffer, int bufferIndex, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
override this.GetChars : int * int64 * char[] * int * int -> int64
Public Function GetChars (ordinal As Integer, dataIndex As Long, buffer As Char(), bufferIndex As Integer, length As Integer) As Long

参数

ordinal
Int32

从零开始的列序号。

dataIndex
Int64

自其开始读取操作的字段中的索引位置。

buffer
Char[]

要将字符流读入的缓冲区。

bufferIndex
Int32

缓冲区中自其开始写入操作的索引位置。

length
Int32

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

返回

读取的实际字符数。

实现

适用于