RowIndexOutOfRangeException 클래스

정의

PipelineBuffer의 행에 액세스하는 경우 잘못된 인덱스가 제공될 때 발생하는 예외입니다.

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

예제

다음 코드 예제에서는 가 먼저 호출되지 않았기 때문에 NextRowRowIndexOutOfRangeException throw합니다.

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  

설명

이 예외는 인덱스로 의 행에 PipelineBuffer 액세스하려고 할 때 throw되며 제공된 인덱스가 버퍼의 행 수보다 크거나 0보다 작습니다.

CurrentRow 첫 번째 호출 NextRow 없이 개체의 속성에 PipelineBuffer 액세스하면 속성이 컬렉션의 첫 번째 행으로 고급화되지 않았기 때문에 CurrentRow 이 예외가 throw됩니다.

생성자

RowIndexOutOfRangeException()

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

적용 대상