Compartilhar via


Método SqlCeUpdatableRecord.GetBytes

Copia um comprimento de bytes no buffer, iniciando em uma posição especificada no campo especificado.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (em System.Data.SqlServerCe.dll)

Sintaxe

'Declaração
Public Function GetBytes ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Long
'Uso
Dim instance As SqlCeUpdatableRecord
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Byte()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long

returnValue = instance.GetBytes(ordinal, _
    dataIndex, buffer, bufferIndex, length)
public long GetBytes(
    int ordinal,
    long dataIndex,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
virtual long long GetBytes(
    int ordinal, 
    long long dataIndex, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
) sealed
abstract GetBytes : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int64 
override GetBytes : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int64 
public final function GetBytes(
    ordinal : int, 
    dataIndex : long, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : long

Parâmetros

  • ordinal
    Tipo: System.Int32
    A posição ordinal da coluna da qual os dados devem ser recuperados.
  • dataIndex
    Tipo: System.Int64
    O deslocamento (em bytes) no campo do qual deve ser iniciada a cópia dos dados.
  • buffer
    Tipo: array<System.Byte[]
    O buffer no qual os dados devem ser copiados.
  • bufferIndex
    Tipo: System.Int32
    O deslocamento no buffer do qual deve ser iniciada a cópia.
  • length
    Tipo: System.Int32
    O número máximo de bytes a serem copiados.

Valor de retorno

Tipo: System.Int64

Implementa

IDataRecord.GetBytes(Int32, Int64, array<Byte[], Int32, Int32)

Consulte também

Referência

SqlCeUpdatableRecord Classe

Namespace System.Data.SqlServerCe