Classe RowIndexOutOfRangeException
The exception that is thrown when an invalid index is supplied when accessing a row in a PipelineBuffer.
Hiérarchie d'héritage
System. . :: . .Object
System. . :: . .Exception
System. . :: . .ApplicationException
Microsoft.SqlServer.Dts.Pipeline..::..RowIndexOutOfRangeException
Espace de noms : Microsoft.SqlServer.Dts.Pipeline
Assembly : Microsoft.SqlServer.PipelineHost (en Microsoft.SqlServer.PipelineHost.dll)
Syntaxe
'Déclaration
<SerializableAttribute> _
Public Class RowIndexOutOfRangeException _
Inherits ApplicationException
'Utilisation
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
Le type RowIndexOutOfRangeException expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
RowIndexOutOfRangeException | Initializes a new instance of the RowIndexOutOfRangeException class. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
Data | (hérité de Exception.) | |
HelpLink | (hérité de Exception.) | |
HResult | (hérité de Exception.) | |
InnerException | (hérité de Exception.) | |
Message | (hérité de Exception.) | |
Source | (hérité de Exception.) | |
StackTrace | (hérité de Exception.) | |
TargetSite | (hérité de Exception.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Equals | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetBaseException | (hérité de Exception.) | |
GetHashCode | (hérité de Object.) | |
GetObjectData | (hérité de Exception.) | |
GetType | (hérité de Exception.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | (hérité de Exception.) |
Haut de la page
Notes
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.
Exemples
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
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.