TraceReader.GetChars 方法

定义

从缓冲区偏移量开始,从指定的列位置获取字符数组值。

重载

GetChars(Int32, Char[], Int32, Int32, Int32)

从指定的列位置处的记录获取字符数组值。

GetChars(Int32, Int64, Char[], Int32, Int32)

从指定的列位置处的记录获取字符数组值。

GetChars(Int32, Char[], Int32, Int32, Int32)

从指定的列位置处的记录获取字符数组值。

public:
 int GetChars(int ordinal, cli::array <char> ^ buffer, int length, int bufferoffset, int fieldoffset);
public int GetChars (int ordinal, char[] buffer, int length, int bufferoffset, int fieldoffset);
member this.GetChars : int * char[] * int * int * int -> int
Public Function GetChars (ordinal As Integer, buffer As Char(), length As Integer, bufferoffset As Integer, fieldoffset As Integer) As Integer

参数

ordinal
Int32

一个指定列位置(自该位置检索字符数组值)的 Int32 值。

buffer
Char[]

一个 System.UInt8 数组,该数组指定要将字符数组读入的缓冲区。

length
Int32

一个指定要读取的字符数的 Int32 值。

bufferoffset
Int32

一个 Int32 值,该值指定要从中启动读取操作的索引。

fieldoffset
Int32

一个 Int32 值,该值指定自其开始读取操作的记录中的索引位置。

返回

一个 int32 值,该值指定数组中返回的字符数。

示例

Readme_Tracer

适用于

GetChars(Int32, Int64, Char[], Int32, Int32)

从指定的列位置处的记录获取字符数组值。

public:
 virtual long GetChars(int ordinal, long fieldoffset, cli::array <char> ^ buffer, int bufferoffset, int length);
public long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, 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, fieldoffset As Long, buffer As Char(), bufferoffset As Integer, length As Integer) As Long

参数

ordinal
Int32

一个指定列位置(自该位置检索字符数组值)的 Int32 值。

fieldoffset
Int64

一个 Int32 值,该值指定自其开始读取操作的记录中的索引位置。

buffer
Char[]

一个 Char 数组,该数组指定要将字符数组读入的缓冲区。

bufferoffset
Int32

一个 Int32 值,该值指定要从中启动读取操作的索引。

length
Int32

一个指定要读取的字符数的 Int32 值。

返回

一个指定在数组中返回的字符数的 Int64 值。

实现

示例

Readme_Tracer

适用于