DbDataRecord.GetBytes(Int32, Int64, Byte[], Int32, Int32) Metoda

Definicja

Zwraca wartość określonej kolumny jako tablicę bajtów.

public:
 abstract long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public:
 virtual long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public abstract long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
public abstract long GetBytes (int i, long dataIndex, byte[]? buffer, int bufferIndex, int length);
public long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
override this.GetBytes : int * int64 * byte[] * int * int -> int64
Public MustOverride Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long
Public Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long

Parametry

i
Int32

Porządkowa kolumna oparta na zera.

dataIndex
Int64

Indeks w polu, z którego ma rozpocząć operację odczytu.

buffer
Byte[]

Bufor służący do odczytywania strumienia bajtów.

bufferIndex
Int32

Indeks umożliwiający buffer rozpoczęcie operacji odczytu.

length
Int32

Liczba bajtów do odczytania.

Zwraca

Wartość określonej kolumny.

Implementuje

Uwagi

Nie są wykonywane żadne konwersje; dlatego pobrane dane muszą być już tablicą bajtów.

Dotyczy

Zobacz też