DbDataRecord.GetBytes(Int32, Int64, Byte[], Int32, Int32) Método

Definición

Devuelve el valor de la columna especificada como una matriz de bytes.Returns the value of the specified column as a byte array.

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 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

Parámetros

i
Int32

Índice de la columna de base cero.The zero-based column ordinal.

dataIndex
Int64

Índice del campo a partir del cual se va a comenzar la operación de lectura.The index within the field from which to start the read operation.

buffer
Byte[]

Búfer en el que se va a leer la secuencia de bytes.The buffer into which to read the stream of bytes.

bufferIndex
Int32

Índice de buffer para iniciar la operación de lectura.The index for buffer to start the read operation.

length
Int32

Número de bytes que se va a leer.The number of bytes to read.

Devoluciones

Int64

El valor de la columna especificada.The value of the specified column.

Implementaciones

Comentarios

No se realizan conversiones; por lo tanto, los datos recuperados deben ser ya una matriz de bytes.No conversions are performed; therefore the data retrieved must already be a byte array.

Se aplica a