Compartir a través de


Clase RowIndexOutOfRangeException

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

Jerarquía de herencia

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SqlServer.Dts.Pipeline.RowIndexOutOfRangeException

Espacio de nombres:  Microsoft.SqlServer.Dts.Pipeline
Ensamblado:  Microsoft.SqlServer.PipelineHost (en Microsoft.SqlServer.PipelineHost.dll)

Sintaxis

'Declaración
<SerializableAttribute> _
Public Class RowIndexOutOfRangeException _
    Inherits ApplicationException
'Uso
Dim instance As RowIndexOutOfRangeException
[SerializableAttribute]
public class RowIndexOutOfRangeException : ApplicationException
[SerializableAttribute]
public ref class RowIndexOutOfRangeException : public ApplicationException
[<SerializableAttribute>]
type RowIndexOutOfRangeException =  
    class 
        inherit ApplicationException 
    end
public class RowIndexOutOfRangeException extends ApplicationException

El tipo RowIndexOutOfRangeException expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público RowIndexOutOfRangeException Initializes a new instance of the RowIndexOutOfRangeException class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Data (Se hereda de Exception.)
Propiedad pública HelpLink (Se hereda de Exception.)
Propiedad pública HResult (Se hereda de Exception.)
Propiedad pública InnerException (Se hereda de Exception.)
Propiedad pública Message (Se hereda de Exception.)
Propiedad pública Source (Se hereda de Exception.)
Propiedad pública StackTrace (Se hereda de Exception.)
Propiedad pública TargetSite (Se hereda de Exception.)

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetBaseException (Se hereda de Exception.)
Método público GetHashCode (Se hereda de Object.)
Método público GetObjectData Importante para la seguridad. (Se hereda de Exception.)
Método público GetType (Se hereda de Exception.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Exception.)

Arriba

Eventos

  Nombre Descripción
Evento protegido SerializeObjectState (Se hereda de Exception.)

Arriba

Comentarios

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.

Ejemplos

The following code example throws a RowIndexOutOfRangeException because NextRow has not been called first.

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

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dts.Pipeline