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
属性

以下のコード例は、NextRowが最初に呼び出されていないためにRowIndexOutOfRangeExceptionを投げ出します。

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 の行にアクセスしようとし、提供されるインデックスがバッファ内の行数より大きいか、ゼロ未満である場合に発生します。

PipelineBufferオブジェクトのCurrentRowプロパティを先にNextRow呼ばずにアクセスすると、CurrentRowプロパティがコレクションの最初の行に進まっていないため、この例外も投げられます。

コンストラクター

名前 説明
RowIndexOutOfRangeException()

RowIndexOutOfRangeException クラスの新しいインスタンスを初期化します。

適用対象