IDTSBufferManager100.RegisterBufferType Method (Int32, DTP_BUFFCOL, Int32, UInt32)
Applies To: SQL Server 2016 Preview
Registers a buffer type with an IDTSBufferManager100.
Namespace: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly: Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)
Syntax
[DispIdAttribute(101)]
int RegisterBufferType(
int cCols,
[InAttribute] ref DTP_BUFFCOL rgCols,
int lMaxRows,
uint dwCreationFlags
)
[DispIdAttribute(101)]
int RegisterBufferType(
int cCols,
[InAttribute] DTP_BUFFCOL% rgCols,
int lMaxRows,
unsigned int dwCreationFlags
)
[<DispIdAttribute(101)>]
abstract RegisterBufferType :
cCols:int *
rgCols:DTP_BUFFCOL byref *
lMaxRows:int *
dwCreationFlags:uint32 -> int
<DispIdAttribute(101)>
Function RegisterBufferType (
cCols As Integer,
<InAttribute> ByRef rgCols As DTP_BUFFCOL,
lMaxRows As Integer,
dwCreationFlags As UInteger
) As Integer
Parameters
cCols
Type: System.Int32The number of columns in the buffer type definition.
rgCols
Type: Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTP_BUFFCOLA pointer to the collection of DTP_BUFFCOL structures that describe each of the columns in the buffer type definition.
lMaxRows
Type: System.Int32The maximum number of rows that the buffer can hold.
dwCreationFlags
Type: System.UInt32A combination of the values in the DTSBufferFlags.
Return Value
Type: System.Int32
An unsigned integer that contains the ID of the buffer type.
Remarks
The buffer manager maintains a list of buffer types. Each buffer type definition contains the number of columns, the data type properties of each column, whether space is allocated that holds status information for the column, and how the columns are initialized when a new instance of the buffer type is created. This method is used to register a new buffer type with the manager. Once the new buffer type has been defined, the returned ID of the buffer type is used when calling the CreateBuffer method. If an existing buffer definition is found that matches the parameters of this method, then its ID is returned. Otherwise, a new definition is created.
See Also
IDTSBufferManager100 Interface
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace
Return to top