Condividi tramite


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

Se implementata da una classe, recupera un numero specificato di byte dati binari da rivedere.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Sintassi

'Dichiarazione
Function GetBytes ( _
    index As Integer, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
int GetBytes(
    int index,
    byte[] buffer,
    int bufferIndex,
    int length
)
int GetBytes(
    int index, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
)
abstract GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int
function GetBytes(
    index : int, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : int

Parametri

  • index
    Tipo: Int32

    Indice nel blocco corrente di dati per l'elemento recuperi.

  • buffer
    Tipo: array<Byte[]

    Una matrice in cui è specificato i dati, come matrice di byte, deve essere inserita. Se nullriferimento null (Nothing in Visual Basic), questo metodo restituisce la dimensione richiesta di matrice per contenere tutti dati specificati.

  • bufferIndex
    Tipo: Int32

    Indice del punto iniziale della matrice di byte specificata con il parametro buffer.

  • length
    Tipo: Int32

    Numero di byte da leggere nella matrice di byte specificata con il parametro buffer.

Valore restituito

Tipo: Int32
Un intero che indica il numero di byte leggere il buffer.

Note

Quando i dati sono verificati dal provider di DDEX sotto forma di byte non elaborati, chiamare questo metodo in sola lettura un determinato numero di byte in un buffer lato client esistente. Esegue più semplicemente recuperare il valore di qualsiasi, in modo che tutti i dati venga letto e a allocata la memoria.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsDataReader Interfaccia

Overload GetBytes

Spazio dei nomi Microsoft.VisualStudio.Data.Services.SupportEntities