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

Liczba porządkowa kolumn opartych na zerach.

dataIndex
Int64

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

buffer
Byte[]

Bufor, do którego ma być odczytywany strumień bajtów.

bufferIndex
Int32

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

length
Int32

Liczba bajtów do odczytania.

Zwraca

Int64

Wartość określonej kolumny.

Implementuje

Uwagi

Nie są wykonywane żadne konwersje; w związku z tym pobrane dane muszą już być tablicą bajtów.

Dotyczy

Zobacz też