Condividi tramite


DTSBufferManagerClass.RegisterBufferType Metodo

Definizione

public:
 virtual int RegisterBufferType(int cCols, Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::DTP_BUFFCOL % rgCols, int lMaxRows, System::UInt32 dwCreationFlags) = Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSBufferManager100::RegisterBufferType;
public virtual int RegisterBufferType (int cCols, ref Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.DTP_BUFFCOL rgCols, int lMaxRows, uint dwCreationFlags);
abstract member RegisterBufferType : int * DTP_BUFFCOL * int * uint32 -> int
override this.RegisterBufferType : int * DTP_BUFFCOL * int * uint32 -> int
Public Overridable Function RegisterBufferType (cCols As Integer, ByRef rgCols As DTP_BUFFCOL, lMaxRows As Integer, dwCreationFlags As UInteger) As Integer

Parametri

cCols
Int32
rgCols
DTP_BUFFCOL
lMaxRows
Int32
dwCreationFlags
UInt32

Restituisce

Intero senza segno contenente l'ID del tipo di buffer.

Implementazioni

Commenti

Gestione buffer gestisce un elenco di tipi di buffer. Ogni definizione del tipo di buffer contiene il numero di colonne, le proprietà del tipo di dati di ogni colonna, se lo spazio viene allocato che contiene informazioni sullo stato per la colonna e la modalità di inizializzazione delle colonne quando viene creata una nuova istanza del tipo di buffer. Questo metodo viene usato per registrare un nuovo tipo di buffer con il gestore. Dopo aver definito un tipo di buffer, viene usato l'ID restituito del tipo di buffer quando si chiama CreateBuffer. Se viene trovata una definizione di buffer che corrisponde ai parametri di questo metodo, viene restituito il relativo ID. In caso contrario, viene creata una nuova definizione.

Si applica a