AdoDotNetDataTableReader.GetBytes, méthode

Lit un flux d'octets en mémoire tampon comme tableau, en commençant à un offset spécifié

Espace de noms :  Microsoft.VisualStudio.Data.AdoDotNet
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
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

Paramètres

  • index
    Type : Int32

    Index dans le champ de données à partir duquel pour démarrer l'opération de lecture.

  • buffer
    Type : array<Byte[]

    Le tableau d'octets à lire.

  • bufferIndex
    Type : Int32

    Index dans la mémoire tampon à partir duquel commencer à définir les données.

  • length
    Type : Int32

    Longueur du flux d'octets.

Valeur de retour

Type : Int32
Retourne une valeur entière spécifiant l'offset à partir duquel commencer la lecture dans le flux d'octets.

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetDataTableReader Classe

Microsoft.VisualStudio.Data.AdoDotNet, espace de noms

GetBytes