Partilhar via


Método AdoDotNetDataTableReader.GetBytes

Ler um fluxo de bytes em buffer como uma matriz, começando em um deslocamento especificado

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (em Microsoft.VisualStudio.Data.dll)

Sintaxe

'Declaração
Public Overrides Function GetBytes ( _
    index As Integer, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
public override int GetBytes(
    int index,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
virtual int GetBytes(
    int index, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
) override
abstract GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int  
override GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int
public override function GetBytes(
    index : int, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : int

Parâmetros

  • index
    Tipo: Int32

    Índice no campo de dados que para iniciar a operação de leitura.

  • buffer
    Tipo: array<Byte[]

    A matriz de bytes a ser lido.

  • bufferIndex
    Tipo: Int32

    Índice em buffer para iniciar colocar os dados.

  • length
    Tipo: Int32

    Comprimento do fluxo de bytes.

Valor de retorno

Tipo: Int32
Retorna um valor inteiro que especifica o deslocamento para iniciar a ler no fluxo de bytes.

Segurança do .NET Framework

Consulte também

Referência

AdoDotNetDataTableReader Classe

Namespace Microsoft.VisualStudio.Data.AdoDotNet

GetBytes