Share via


DbUpdatableDataRecord.GetBytes(Int32, Int64, Byte[], Int32, Int32) Method

Definition

Retrieves the field value as a byte array.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes")]
public override long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length);
override this.GetBytes : int * int64 * byte[] * int * int -> int64
Public Overrides Function GetBytes (i As Integer, dataIndex As Long, buffer As Byte(), bufferIndex As Integer, length As Integer) As Long

Parameters

i
Int32

The ordinal of the field.

dataIndex
Int64

The index at which to start copying data.

buffer
Byte[]

The destination buffer where data is copied.

bufferIndex
Int32

The index in the destination buffer where copying will begin.

length
Int32

The number of bytes to copy.

Returns

The number of bytes copied.

Implements

Attributes

Applies to