Assembly: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)
[SerializableAttribute] public class RowIndexOutOfRangeException : ApplicationException
/** @attribute SerializableAttribute() */ public class RowIndexOutOfRangeException extends ApplicationException
This exception is thrown when attempting to access a row in a PipelineBuffer by index and the supplied index is either greater than the number of rows in the buffer or is less than zero.
Accessing the CurrentRow property of the PipelineBuffer object without first calling NextRow will also throw this exception because the CurrentRow property has not been advanced to the first row in the collection.
The following code example throws a RowIndexOutOfRangeException because NextRow has not been called first.