RowIndexOutOfRangeException Class

The exception that is thrown when an invalid index is supplied when accessing a row in a PipelineBuffer.

Inheritance Hierarchy


Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)


<SerializableAttribute> _
Public Class RowIndexOutOfRangeException _
    Inherits ApplicationException
Dim instance As RowIndexOutOfRangeException
public class RowIndexOutOfRangeException : ApplicationException
public ref class RowIndexOutOfRangeException : public ApplicationException
type RowIndexOutOfRangeException =  
        inherit ApplicationException
public class RowIndexOutOfRangeException extends ApplicationException

The RowIndexOutOfRangeException type exposes the following members.


  Name Description
Public method RowIndexOutOfRangeException Initializes a new instance of the RowIndexOutOfRangeException class.



  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)



  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)



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.

public override void ProcessInput(int inputID, PipelineBuffer buffer)
//while (buffer.NextRow())
BufferColumn bc = buffer.GetColumnInfo(0);
catch (RowIndexOutOfRangeException e )
Public Overloads Overrides Sub ProcessInput(ByVal inputID As Integer, ByVal buffer As PipelineBuffer) 
   Dim bc As BufferColumn = buffer.GetColumnInfo(0) 
 Catch e As RowIndexOutOfRangeException 
 End Try 
End Sub

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.