RegisterBufferType メソッド

IDTSBufferManager100 にバッファの種類を登録します。

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

構文

'宣言
Public Overridable Function RegisterBufferType ( _
    cCols As Integer, _
    ByRef rgCols As DTP_BUFFCOL, _
    lMaxRows As Integer, _
    dwCreationFlags As UInteger _
) As Integer
'使用
Dim instance As DTSBufferManagerClass
Dim cCols As Integer
Dim rgCols As DTP_BUFFCOL
Dim lMaxRows As Integer
Dim dwCreationFlags As UInteger
Dim returnValue As Integer

returnValue = instance.RegisterBufferType(cCols, _
    rgCols, lMaxRows, dwCreationFlags)
public virtual int RegisterBufferType(
    int cCols,
    ref DTP_BUFFCOL rgCols,
    int lMaxRows,
    uint dwCreationFlags
)
public:
virtual int RegisterBufferType(
    [InAttribute] int cCols, 
    [InAttribute] DTP_BUFFCOL% rgCols, 
    [InAttribute] int lMaxRows, 
    [InAttribute] unsigned int dwCreationFlags
)
abstract RegisterBufferType : 
        cCols:int * 
        rgCols:DTP_BUFFCOL byref * 
        lMaxRows:int * 
        dwCreationFlags:uint32 -> int 
override RegisterBufferType : 
        cCols:int * 
        rgCols:DTP_BUFFCOL byref * 
        lMaxRows:int * 
        dwCreationFlags:uint32 -> int 
public function RegisterBufferType(
    cCols : int, 
    rgCols : DTP_BUFFCOL, 
    lMaxRows : int, 
    dwCreationFlags : uint
) : int

パラメーター

戻り値

型: System. . :: . .Int32
バッファの種類の ID を含む符号なし整数です。

実装

IDTSBufferManager100. . :: . .RegisterBufferType(Int32, DTP_BUFFCOL%, Int32, UInt32)

説明

バッファ マネージャは、バッファの種類の一覧を管理します。バッファの種類の各定義には、列数、各列のデータ型のプロパティ、列の状態情報を保持する領域を割り当てるかどうか、そのバッファの種類の新しいインスタンスが作成されたときにどのように列を初期化するかが含まれています。このメソッドは、マネージャに新しいバッファの種類を登録するのに使用します。バッファの種類を定義した後、返されたバッファの種類の ID は CreateBuffer を呼び出すときに使用されます。このメソッドのパラメータと一致するバッファ定義が検出された場合は、その ID が返されます。それ以外の場合は、新しい定義が作成されます。