次の方法で共有


PipelineBuffer.NextRow メソッド

次の行に PipelineBuffer を進めます。

名前空間:  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、進まない場合は false です。

説明

NextRow メソッドは、PipelineBuffer をコレクションの次の行に進めます。 このメソッドは、利用可能な行がなくなるまで、true を返します。

使用例

次のコード例では、NextRow メソッドを使用することにより、ループで入力 PipelineBuffer の各行を処理しています。

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 名前空間