TraceReader.GetChars 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定的欄位位置取得字元陣列值,從緩衝區偏移開始。
多載
| 名稱 | 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
參數
- buffer
- Char[]
一個 System.UInt8 陣列,指定要讀取字元陣列的緩衝區。
傳回
int32 值,指定陣列中回傳的字元數。
範例
適用於
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
參數
傳回
一個 Int64 指定陣列回傳字元數的值。