다음을 통해 공유


IDTSBufferManager90.RegisterBufferType Method

Registers a buffer type with an IDTSBufferManager90.

네임스페이스: Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리: Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)

구문

‘선언
<DispIdAttribute(101)> _
Function RegisterBufferType ( _
    <InAttribute> cCols As Integer, _
    <InAttribute> ByRef rgCols As DTP_BUFFCOL, _
    <InAttribute> lMaxRows As Integer, _
    <InAttribute> dwCreationFlags As UInteger _
) As Integer
[DispIdAttribute(101)] 
int RegisterBufferType (
    [InAttribute] int cCols,
    [InAttribute] ref DTP_BUFFCOL rgCols,
    [InAttribute] int lMaxRows,
    [InAttribute] uint dwCreationFlags
)
[DispIdAttribute(101)] 
int RegisterBufferType (
    [InAttribute] int cCols, 
    [InAttribute] DTP_BUFFCOL% rgCols, 
    [InAttribute] int lMaxRows, 
    [InAttribute] unsigned int dwCreationFlags
)
/** @attribute DispIdAttribute(101) */ 
int RegisterBufferType (
    /** @attribute InAttribute() */ int cCols, 
    /** @attribute InAttribute() */ /** @ref */ DTP_BUFFCOL rgCols, 
    /** @attribute InAttribute() */ int lMaxRows, 
    /** @attribute InAttribute() */ UInt32 dwCreationFlags
)
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.

반환 값

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.

스레드 보안

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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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