OleDbDataReader.GetBytes メソッド
アセンブリ: System.Data (system.data.dll 内)

Public Overrides Function GetBytes ( _ ordinal As Integer, _ dataIndex As Long, _ buffer As Byte(), _ bufferIndex As Integer, _ length As Integer _ ) As Long
Dim instance As OleDbDataReader 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 override 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 ) override
public override function GetBytes ( ordinal : int, dataIndex : long, buffer : byte[], bufferIndex : int, length : int ) : long
戻り値
実際に読み込まれたバイト数。

GetBytes は、フィールド内の利用可能なバイト数を返します。ほとんどの場合、これは正確なフィールド長です。ただし、既に GetBytes を使用してフィールドからバイトを取得している場合は、返されるバイト数が、フィールドの実際の長さよりも小さくなることがあります。これは、OleDbDataReader が、大きいデータ構造体をバッファに読み込んでいるときなどに起こります。詳細については、CommandBehavior の SequentialAccess 設定のトピックを参照してください。
null 参照 (Visual Basic では Nothing) のバッファを渡すと、GetBytes は、バイト単位のフィールド長を返します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からOleDbDataReader.GetBytes メソッドを検索する場合は、下記のリンクをクリックしてください。

- OleDbDataReader.GetBytes メソッドのページへのリンク