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