RowIndexOutOfRangeException 类
The exception that is thrown when an invalid index is supplied when accessing a row in a 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 | Initializes a new instance of the RowIndexOutOfRangeException class. |
页首
属性
名称 | 说明 | |
---|---|---|
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 继承。) |
页首
注释
This exception is thrown when attempting to access a row in a PipelineBuffer by index and the supplied index is either greater than the number of rows in the buffer or is less than zero.
Accessing the CurrentRow property of the PipelineBuffer object without first calling NextRow will also throw this exception because the CurrentRow property has not been advanced to the first row in the collection.
示例
The following code example throws a RowIndexOutOfRangeException because NextRow has not been called first.
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
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。