共用方式為


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

來源資料中的起始點。

傳回

指定的資料行值。

實作

備註

不會進行轉換;因此擷取的資料必須已經是字元陣列。

適用於

另請參閱