Advanced.Data.Provider Documentation

AdpDataReader.GetBytes Method 

[This is preliminary documentation and subject to change.]

Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.

[Visual Basic]
NotOverridable Public Function GetBytes( _
   ByVal i As Integer, _
   ByVal fieldOffset As Long, _
   ByVal buffer As Byte(), _
   ByVal bufferoffset As Integer, _
   ByVal length As Integer _
) As Long Implements _
   IDataRecord.GetBytes
[C#]
public long GetBytes(
   int i,
   long fieldOffset,
   byte[] buffer,
   int bufferoffset,
   int length
);

Parameters

i
The zero-based column ordinal.
fieldOffset
The index within the field from which to begin the read operation.
buffer
The buffer into which to read the stream of bytes.
bufferoffset
The index for buffer to begin the read operation.
length
The number of bytes to read.

Return Value

The actual number of bytes read.

Implements

IDataRecord.GetBytes

See Also

AdpDataReader Class | Advanced.Data.Provider Namespace