PipelineBuffer.NextRow Method
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
public bool NextRow ()
public:
bool NextRow ()
public boolean NextRow ()
public function NextRow () : boolean
Valore restituito
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.
Esempio
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 )
{
if(! buffer.EndOfRowset)
{
while( buffer.NextRow() )
{
// TODO Process the row.
}
}
}
Public Overrides Sub ProcessInput(ByVal inputID As Integer, ByVal buffer As PipelineBuffer)
If Not buffer.EndOfRowset Then
While buffer.NextRow
' TODO Process the row.
End While
End If
End Sub
Thread Safety
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.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
PipelineBuffer Class
PipelineBuffer Members
Microsoft.SqlServer.Dts.Pipeline Namespace