RowIndexOutOfRangeException 클래스

정의

public ref class RowIndexOutOfRangeException : ApplicationException
[System.Serializable]
public class RowIndexOutOfRangeException : ApplicationException
[<System.Serializable>]
type RowIndexOutOfRangeException = class
    inherit ApplicationException
Public Class RowIndexOutOfRangeException
Inherits ApplicationException
상속
RowIndexOutOfRangeException
특성

예제

다음 코드 예시는 먼저 RowIndexOutOfRangeException 호출되지 않은 Because a NextRow 를 던집니다.

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  

설명

이 예외는 by 인덱스의 행 PipelineBuffer 에 접근하려 할 때 제공된 인덱스가 버퍼 행 수보다 크거나 0보다 작을 때 발생합니다.

먼저 호출 NextRow 하지 않고 객체의 PipelineBuffer 속성에 접근하면CurrentRow, 속성이 CurrentRow 컬렉션의 첫 번째 행으로 진행되지 않았기 때문에 이 예외가 발생합니다.

생성자

Name Description
RowIndexOutOfRangeException()

RowIndexOutOfRangeException 클래스의 새 인스턴스를 초기화합니다.

적용 대상