次の方法で共有


RowIndexOutOfRangeException クラス

PipelineBuffer の行にアクセスする際に無効なインデックスが指定されるとスローされる例外です。

継承階層

System. . :: . .Object
  System. . :: . .Exception
    System. . :: . .ApplicationException
      Microsoft.SqlServer.Dts.Pipeline..::..RowIndexOutOfRangeException

名前空間:  Microsoft.SqlServer.Dts.Pipeline
アセンブリ:  Microsoft.SqlServer.PipelineHost (Microsoft.SqlServer.PipelineHost.dll)

構文

'宣言
<SerializableAttribute> _
Public Class RowIndexOutOfRangeException _
    Inherits ApplicationException
'使用
Dim instance As RowIndexOutOfRangeException
[SerializableAttribute]
public class RowIndexOutOfRangeException : ApplicationException
[SerializableAttribute]
public ref class RowIndexOutOfRangeException : public ApplicationException
[<SerializableAttribute>]
type RowIndexOutOfRangeException =  
    class
        inherit ApplicationException
    end
public class RowIndexOutOfRangeException extends ApplicationException

RowIndexOutOfRangeException 型は、以下のメンバーを公開しています。

コンストラクター

  名前 説明
パブリック メソッド RowIndexOutOfRangeException RowIndexOutOfRangeException クラスの新しいインスタンスを初期化します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ Data (Exception から継承されています。)
パブリック プロパティ HelpLink (Exception から継承されています。)
プロテクト プロパティ HResult (Exception から継承されています。)
パブリック プロパティ InnerException (Exception から継承されています。)
パブリック プロパティ Message (Exception から継承されています。)
パブリック プロパティ Source (Exception から継承されています。)
パブリック プロパティ StackTrace (Exception から継承されています。)
パブリック プロパティ TargetSite (Exception から継承されています。)

先頭に戻る

メソッド

  名前 説明
パブリック メソッド Equals (Object から継承されています。)
プロテクト メソッド Finalize (Object から継承されています。)
パブリック メソッド GetBaseException (Exception から継承されています。)
パブリック メソッド GetHashCode (Object から継承されています。)
パブリック メソッド GetObjectData (Exception から継承されています。)
パブリック メソッド GetType (Exception から継承されています。)
プロテクト メソッド MemberwiseClone (Object から継承されています。)
パブリック メソッド ToString (Exception から継承されています。)

先頭に戻る

説明

インデックスにより PipelineBuffer 内の行へのアクセスを試み、指定されたインデックスがバッファ内の行数より大きいか、ゼロ未満の場合、この例外がスローされます。

最初に NextRow を呼び出さずに、PipelineBuffer オブジェクトの CurrentRow プロパティにアクセスした場合も、CurrentRow プロパティがコレクションの最初の行に進んでいないため、この例外がスローされます。

使用例

次のコード例では、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

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。