TraceReader.GetChars 方法

定義

從指定的欄位位置取得字元陣列值,從緩衝區偏移開始。

多載

名稱 Description
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

適用於