共用方式為


PipelineBuffer.NextRow 方法

Advances the PipelineBuffer to the next row.

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

語法

'宣告
Public Function NextRow As Boolean
'用途
Dim instance As PipelineBuffer 
Dim returnValue As Boolean 

returnValue = instance.NextRow()
public bool NextRow()
public:
bool NextRow()
member NextRow : unit -> bool
public function NextRow() : boolean

傳回值

型別:System.Boolean
true if the buffer was advanced to the next row; otherwise, false.

備註

The NextRow method advances the PipelineBuffer to the next row in its collection. It returns true until there are no more available rows.

範例

The following code example loops through the rows of an input PipelineBuffer by using the NextRow method.

public override void ProcessInput( int inputID, PipelineBuffer buffer )
{
  while( buffer.NextRow() )
  {
     // TODO Process the row.
  }
}
Public  Overrides Sub ProcessInput(ByVal inputID As Integer, ByVal buffer As PipelineBuffer) 
 While buffer.NextRow 
  ' TODO Process the row.
 End While 
End Sub

請參閱

參考

PipelineBuffer 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間