Condividi tramite


Metodo PipelineBuffer.NextRow

Advances the PipelineBuffer to the next row.

Spazio dei nomi  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

Sintassi

'Dichiarazione
Public Function NextRow As Boolean
'Utilizzo
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

Valore restituito

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

Osservazioni

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

Esempi

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

Vedere anche

Riferimento

PipelineBuffer Classe

Spazio dei nomi Microsoft.SqlServer.Dts.Pipeline