AdoDotNetReader.GetBytes (Método) (Int32, array<Byte , Int32, Int32)

Recupera un número de bytes especificado de datos binarios.

Espacio de nombres:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Ensamblado:  Microsoft.VisualStudio.Data.Framework (en Microsoft.VisualStudio.Data.Framework.dll)

Sintaxis

'Declaración
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: System.Int32
    Índice en el bloque actual de datos para que el elemento recupere.
  • buffer
    Tipo: array<System.Byte[]
    Una matriz donde especificó datos, como una matriz de bytes, debe estar.Si nullreferencia null (Nothing en Visual Basic), este método devuelve el tamaño necesario de matriz para ajustarse todos los datos especificados.
  • bufferIndex
    Tipo: System.Int32
    Índice del punto inicial de la matriz de bytes especificada por el parámetro de buffer .
  • length
    Tipo: System.Int32
    El número de bytes que se va a leer en la matriz de bytes especificada por el parámetro de buffer .

Valor devuelto

Tipo: System.Int32
Un valor numérico que indica el número de bytes leídos en el búfer.

Implementaciones

IVsDataReader.GetBytes(Int32, array<Byte[], Int32, Int32)

Comentarios

Cuando los datos se muestra mediante el proveedor de datos en forma de bytes, se puede llamar a este método en readonly algunos bytes en un búfer de cliente existente.Esto funciona mejor que simplemente recupera el valor del conjunto, que hace que todos los datos que se va a leer y asignados en memoria.

Seguridad de .NET Framework

Vea también

Referencia

AdoDotNetReader Clase

GetBytes (Sobrecarga)

Microsoft.VisualStudio.Data.Framework.AdoDotNet (Espacio de nombres)