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

Function GetBytes ( _ i As Integer, _ fieldOffset As Long, _ buffer As Byte(), _ bufferoffset As Integer, _ length As Integer _ ) As Long
Dim instance As IDataRecord Dim i As Integer Dim fieldOffset As Long Dim buffer As Byte() Dim bufferoffset As Integer Dim length As Integer Dim returnValue As Long returnValue = instance.GetBytes(i, fieldOffset, buffer, bufferoffset, length)
long long GetBytes ( int i, long long fieldOffset, array<unsigned char>^ buffer, int bufferoffset, int length )
function GetBytes ( i : int, fieldOffset : long, buffer : byte[], bufferoffset : int, length : int ) : long
- i
列の 0 から始まる序数。
実際に読み込んだバイトの数。


GetBytes は、フィールド内の利用可能なバイト数を返します。ほとんどの場合、これは正確なフィールド長です。ただし、フィールドからバイトを取得するために GetBytes が既に使用されている場合、返される数値はそのフィールドの正確な長さよりも小さいことがあります。
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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