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

Public Overrides Function GetBytes ( _ i As Integer, _ dataIndex As Long, _ buffer As Byte(), _ bufferIndex As Integer, _ length As Integer _ ) As Long
Dim instance As SqlDataReader Dim i 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(i, dataIndex, buffer, bufferIndex, length)
public: virtual long long GetBytes ( int i, long long dataIndex, array<unsigned char>^ buffer, int bufferIndex, int length ) override
public override function GetBytes ( i : int, dataIndex : long, buffer : byte[], bufferIndex : int, length : int ) : long
- i
列の 0 から始まる序数。
実際に読み込まれたバイト数。

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

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


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

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