DbDataReader.GetBytes Method (Int32, Int64, Byte, Int32, Int32)
Reads a stream of bytes from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset.
Assembly: System.Data (in System.Data.dll)
public abstract long GetBytes( int ordinal, long dataOffset, byte buffer, int bufferOffset, int length )
The zero-based column ordinal.
The index within the row from which to begin the read operation.
The buffer into which to copy the data.
The index with the buffer to which the data will be copied.
The maximum number of characters to read.
Return ValueType: System.Int64
The actual number of bytes read.
Available since 10
Available since 2.0