次の方法で共有


IDTSBuffer90.GetBLOBData Method

IDTSBuffer90 の列に格納された、バイナリ ラージ オブジェクト (BLOB) からのバイトの配列を取得します。

名前空間: Microsoft.SqlServer.Dts.Pipeline.Wrapper
アセンブリ: Microsoft.SqlServer.DTSPipelineWrap (microsoft.sqlserver.dtspipelinewrap.dll 内)

構文

'宣言
Sub GetBLOBData ( _
    <InAttribute> hRow As Integer, _
    <InAttribute> hCol As Integer, _
    <InAttribute> dwOffset As UInteger, _
    <InAttribute> ByRef lpPointer As Byte, _
    <InAttribute> dwLength As UInteger, _
    <OutAttribute> ByRef lpdwWritten As UInteger _
)
void GetBLOBData (
    [InAttribute] int hRow,
    [InAttribute] int hCol,
    [InAttribute] uint dwOffset,
    [InAttribute] ref byte lpPointer,
    [InAttribute] uint dwLength,
    out uint lpdwWritten
)
void GetBLOBData (
    [InAttribute] int hRow, 
    [InAttribute] int hCol, 
    [InAttribute] unsigned int dwOffset, 
    [InAttribute] unsigned char% lpPointer, 
    [InAttribute] unsigned int dwLength, 
    [OutAttribute] unsigned int% lpdwWritten
)
void GetBLOBData (
    /** @attribute InAttribute() */ int hRow, 
    /** @attribute InAttribute() */ int hCol, 
    /** @attribute InAttribute() */ UInt32 dwOffset, 
    /** @attribute InAttribute() */ /** @ref */ byte lpPointer, 
    /** @attribute InAttribute() */ UInt32 dwLength, 
    /** @attribute OutAttribute() */ /** @ref */ UInt32 lpdwWritten
)
JScript は、値と型の引数の参照渡しをサポートしていません。

パラメータ

  • hRow
    行ハンドルです。
  • hCol
    列ハンドルです。
  • dwOffset
    列に格納されたバイト データの、バイトの読み取りを開始する場所です。
  • lpPointer
    取得されるバイトの配列の最初のバイトを指す参照パラメータです。
  • dwLength
    列から取得するバイト数です。
  • lpdwWritten
    lpPointer パラメータに書き込まれたバイト数を示す out パラメータです。

解説

DT_IMAGE などの BLOB を含む列からデータを取得する場合、BLOB での開始場所を dwOffset パラメータで指定し、取得するバイト数を dwLength パラメータで指定します。BLOB のデータのサイズがコンピュータの使用可能なメモリを超える場合に発生する状況を回避するため、セクションの BLOB 列からデータを取得することをお勧めします。

このメソッドを使用して、IDTSBuffer90hCol パラメータで指定した列からバイトの一部を取得します。このメソッドは、通常、BLOB セクションを順に読み取る場合に使用されます。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

IDTSBuffer90 Interface
IDTSBuffer90 Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace