次の方法で共有


EntityDataReader.GetBytes メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定された列の dataIndex によって示される場所から始まるバイトのストリームを、bufferIndex によって示される場所から始まるバッファーに読み取ります。

名前空間:  System.Data.Entity.Core.EntityClient
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Overrides Function GetBytes ( _
    ordinal As Integer, _
    dataOffset As Long, _
    buffer As Byte(), _
    bufferOffset As Integer, _
    length As Integer _
) As Long
'使用
Dim instance As EntityDataReader 
Dim ordinal As Integer 
Dim dataOffset As Long 
Dim buffer As Byte()
Dim bufferOffset As Integer 
Dim length As Integer 
Dim returnValue As Long 

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

パラメーター

  • ordinal
    型 : System.Int32
    インデックス番号が 0 から始まる列序数。
  • dataOffset
    型 : System.Int64
    読み取り操作を開始する位置を示す行内のインデックス。
  • buffer
    型 : System.Byte[]
    データのコピー先のバッファー。
  • bufferOffset
    型 : System.Int32
    データのコピー先のバッファーのインデックス。
  • length
    型 : System.Int32
    読み取り対象の最大文字数。

戻り値

型 : System.Int64
実際に読み取られたバイト数を返します。

Implements

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

参照

参照

EntityDataReader クラス

System.Data.Entity.Core.EntityClient 名前空間