DataProvider.GetBytes メソッド
指定された型を持つ指定された列のデータを返します。 このメンバーをコード内で直接参照しないでください。このメンバーは、SQL Server インフラストラクチャをサポートしています。
名前空間: Microsoft.SqlServer.Management.Sdk.Sfc
アセンブリ: Microsoft.SqlServer.Management.Sdk.Sfc (Microsoft.SqlServer.Management.Sdk.Sfc.dll)
構文
'宣言
Public Function GetBytes ( _
i As Integer, _
fieldOffset As Long, _
buffer As Byte(), _
bufferoffset As Integer, _
length As Integer _
) As Long
'使用
Dim instance As DataProvider
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)
public long GetBytes(
int i,
long fieldOffset,
byte[] buffer,
int bufferoffset,
int length
)
public:
virtual long long GetBytes(
int i,
long long fieldOffset,
array<unsigned char>^ buffer,
int bufferoffset,
int length
) sealed
abstract GetBytes :
i:int *
fieldOffset:int64 *
buffer:byte[] *
bufferoffset:int *
length:int -> int64
override GetBytes :
i:int *
fieldOffset:int64 *
buffer:byte[] *
bufferoffset:int *
length:int -> int64
public final function GetBytes(
i : int,
fieldOffset : long,
buffer : byte[],
bufferoffset : int,
length : int
) : long
パラメーター
- i
型: System.Int32
0 から始まる列序数です。
- fieldOffset
型: System.Int64
読み取り操作の開始位置を示す、フィールド内のインデックスです。
- buffer
型: array<System.Byte[]
バイト ストリームを読み取るバッファーです。
- bufferoffset
型: System.Int32
書き込み操作の開始位置を示す、バッファー内のインデックスです。
- length
型: System.Int32
バッファーにコピーする最大長です。
戻り値
型: System.Int64
読み取ったバイト数です。
実装
IDataRecord.GetBytes(Int32, Int64, array<Byte[], Int32, Int32)