RowIndexOutOfRangeException Clase

Definición

La excepción que se produce cuando se proporciona un índice no válido al intentar obtener acceso a una fila de un PipelineBuffer.

public ref class RowIndexOutOfRangeException : ApplicationException
[System.Serializable]
public class RowIndexOutOfRangeException : ApplicationException
[<System.Serializable>]
type RowIndexOutOfRangeException = class
    inherit ApplicationException
Public Class RowIndexOutOfRangeException
Inherits ApplicationException
Herencia
RowIndexOutOfRangeException
Atributos

Ejemplos

En el ejemplo de código siguiente se produce porque RowIndexOutOfRangeExceptionNextRow no se ha llamado primero a .

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  

Comentarios

Esta excepción se produce al intentar tener acceso a una fila de por PipelineBuffer índice y el índice proporcionado es mayor que el número de filas del búfer o es menor que cero.

El acceso a la CurrentRow propiedad del PipelineBuffer objeto sin llamar NextRow primero también producirá esta excepción porque la CurrentRow propiedad no se ha avanzado a la primera fila de la colección.

Constructores

RowIndexOutOfRangeException()

Inicializa una nueva instancia de la clase RowIndexOutOfRangeException.

Se aplica a