Registers a buffer type with the IDTSBufferManager90.
命名空間: Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件: Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)
語法
'宣告
<DispIdAttribute(101)> _
Public Overridable Function RegisterBufferType ( _
<InAttribute> cCols As Integer, _
<InAttribute> ByRef rgCols As DTP_BUFFCOL, _
<InAttribute> lMaxRows As Integer, _
<InAttribute> dwCreationFlags As UInteger _
) As Integer Implements IDTSBufferManager90.RegisterBufferType
[DispIdAttribute(101)]
public virtual int IDTSBufferManager90.RegisterBufferType (
[InAttribute] int cCols,
[InAttribute] ref DTP_BUFFCOL rgCols,
[InAttribute] int lMaxRows,
[InAttribute] uint dwCreationFlags
)
[DispIdAttribute(101)]
public:
virtual int RegisterBufferType (
[InAttribute] int cCols,
[InAttribute] DTP_BUFFCOL% rgCols,
[InAttribute] int lMaxRows,
[InAttribute] unsigned int dwCreationFlags
) = IDTSBufferManager90::RegisterBufferType
J# 支援明確介面實作的使用,但不支援新明確介面實作的宣告。
JScript 不支援以傳址方式傳遞值類型的引數。
參數
- cCols
The number of columns in the buffer type definition.
- rgCols
A pointer to the collection of DTP_BUFFCOL structures that describe each of the columns in the buffer type definition.
- lMaxRows
The maximum number of rows that the buffer can hold.
- dwCreationFlags
A combination of the values in the DTSBufferFlags.
傳回值
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 a buffer type has been defined, the returned ID of the buffer type is used when calling CreateBuffer. If a buffer definition is found that matches the parameters of this method, then its ID is returned. Otherwise, a new definition is created.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
DTSBufferManagerClass Class
DTSBufferManagerClass Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace