Registers a buffer type with an IDTSBufferManager100.
Assembly: Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)
[DispIdAttribute()] int RegisterBufferType( int cCols, ref DTP_BUFFCOL rgCols, int lMaxRows, uint dwCreationFlags )
- Type: Int32
The number of columns in the buffer type definition.
- Type: Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTP_BUFFCOL
A pointer to the collection of DTP_BUFFCOL structures that describe each of the columns in the buffer type definition.
- Type: Int32
The maximum number of rows that the buffer can hold.
- Type: UInt32
A combination of the values in the DTSBufferFlags.
Return ValueType: Int32
An unsigned integer that contains the ID of the buffer type.
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.