DbDataRecord::GetBytes Method (Int32, Int64, array<Byte>^, Int32, Int32)
.NET Framework (current version)
Returns the value of the specified column as a byte array.
Assembly: System.Data (in System.Data.dll)
public: virtual long long GetBytes( int i, long long dataIndex, array<unsigned char>^ buffer, int bufferIndex, int length ) abstract
Parameters
- i
-
Type:
System::Int32
The zero-based column ordinal.
- dataIndex
-
Type:
System::Int64
The index within the field from which to start the read operation.
- buffer
-
Type:
array<System::Byte>^
The buffer into which to read the stream of bytes.
- bufferIndex
-
Type:
System::Int32
The index for buffer to start the read operation.
- length
-
Type:
System::Int32
The number of bytes to read.
No conversions are performed; therefore the data retrieved must already be a byte array.
.NET Framework
Available since 1.1
Available since 1.1
Show: