RegisterBufferType 메서드
Registers a buffer type with the 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
매개 변수
- cCols
유형: System. . :: . .Int32
The number of columns in the buffer type definition.
- rgCols
유형: 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.
- lMaxRows
유형: System. . :: . .Int32
The maximum number of rows that the buffer can hold.
- dwCreationFlags
유형: System. . :: . .UInt32
A combination of the values in the DTSBufferFlags.
반환 값
유형: System. . :: . .Int32
An unsigned integer that contains the ID of the buffer type.
구현
IDTSBufferManager100. . :: . .RegisterBufferType(Int32, DTP_BUFFCOL%, Int32, UInt32)
주의
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.