RowIndexOutOfRangeException 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 클래스의 새 인스턴스를 초기화합니다. |