共用方式為


AddRow 方法

Adds an empty new row to the data flow buffer.

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.TxScript (在 Microsoft.SqlServer.TxScript.dll 中)

語法

'宣告
Protected Sub AddRow
'用途

Me.AddRow()
protected void AddRow()
protected:
void AddRow()
member AddRow : unit -> unit 
protected function AddRow()

備註

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.

範例

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 使用指令碼元件建立非同步轉換.

Public Overrides Sub MyAddressInput_ProcessInputRow(ByVal Row As MyAddressInputBuffer)

  With MyAddressOutputBuffer
    .AddRow()
    .AddressID = Row.AddressID
    .City = Row.City
  End With

  ...

End Sub