ScriptBuffer.AddRow Method
Adds an empty new row to the data flow buffer.
Espace de noms: Microsoft.SqlServer.Dts.Pipeline
Assembly: Microsoft.SqlServer.TxScript (in microsoft.sqlserver.txscript.dll)
Syntaxe
'Déclaration
Protected Sub AddRow
protected void AddRow ()
protected:
void AddRow ()
protected void AddRow ()
protected function AddRow ()
Notes
The Script component developer does not use the ScriptBuffer class directly, but indirectly, through the derived classes in the BufferWrapper project item that represent the component's input and outputs.
The developer uses the AddRow method of the derived classes to add rows to output buffers in source components and in transformations with asynchronous outputs.
Exemple
The following code sample demonstrates the use of the AddRow method to copy input columns manually to an output buffer. For the more information and the complete sample, see Creating an Asynchronous Transformation with the Script Component.
Public Overrides Sub MyAddressInput_ProcessInputRow(ByVal Row As MyAddressInputBuffer)
With MyAddressOutputBuffer
.AddRow()
.AddressID = Row.AddressID
.City = Row.City
End With
...
End Sub
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
ScriptBuffer Class
ScriptBuffer Members
Microsoft.SqlServer.Dts.Pipeline Namespace