次の方法で共有


SqlCeUpdatableRecord.GetBytes メソッド

指定したフィールドの指定した位置を開始位置として、連続するバイトをバッファーにコピーします。

名前空間:  System.Data.SqlServerCe
アセンブリ:  System.Data.SqlServerCe (System.Data.SqlServerCe.dll)

構文

'宣言
Public Function GetBytes ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Long
'使用
Dim instance As SqlCeUpdatableRecord
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Byte()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long

returnValue = instance.GetBytes(ordinal, _
    dataIndex, buffer, bufferIndex, length)
public long GetBytes(
    int ordinal,
    long dataIndex,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
virtual long long GetBytes(
    int ordinal, 
    long long dataIndex, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
) sealed
abstract GetBytes : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int64 
override GetBytes : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int64 
public final function GetBytes(
    ordinal : int, 
    dataIndex : long, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : long

パラメーター

  • ordinal
    型: System.Int32
    データの取得元となる列の序数位置。
  • dataIndex
    型: System.Int64
    データ コピーの開始位置となるフィールド内のオフセット (バイト単位)。
  • buffer
    型: array<System.Byte[]
    データのコピー先のバッファー。
  • bufferIndex
    型: System.Int32
    コピーの開始位置となるバッファー内のオフセット。
  • length
    型: System.Int32
    コピーする最大バイト数。

戻り値

型: System.Int64

実装

IDataRecord.GetBytes(Int32, Int64, array<Byte[], Int32, Int32)

関連項目

参照

SqlCeUpdatableRecord クラス

System.Data.SqlServerCe 名前空間