DbDataRecord.GetBytes(Int32, Int64, Byte[], Int32, Int32) Méthode

Définition

Retourne la valeur de la colonne spécifiée en tant que tableau d’octets.

public:
 virtual long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public:
 abstract long GetBytes(int i, long dataIndex, cli::array <System::Byte> ^ buffer, int bufferIndex, int length);
public long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
public abstract long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
override this.GetBytes : int * int64 * byte[] * int * int -> int64
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
Public Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long
Public MustOverride Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long

Paramètres

i
Int32

Ordinal de colonne de base zéro.

dataIndex
Int64

Index dans le champ à partir duquel démarrer l’opération de lecture.

buffer
Byte[]

Mémoire tampon dans laquelle lire le flux d’octets.

bufferIndex
Int32

Index pour buffer démarrer l’opération de lecture.

length
Int32

Nombre d’octets à lire.

Retours

Valeur de la colonne spécifiée.

Implémente

Remarques

Aucune conversion n’est effectuée ; par conséquent, les données récupérées doivent déjà être un tableau d’octets.

S’applique à

Voir aussi