DB2®ParameterCollection.GetParameter(int) Method

Returns the DbParameter object at the specified index in the DB2ParameterCollection.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Overrides Function GetParameter (index As Integer) As DbParameter
[C#]
public override DbParameter GetParameter (int index)
[C++]
public:
virtual DbParameter^ GetParameter (int index) override
[JScript]
public override function GetParameter (index : int) : DbParameter

Parameters

index
The position of the parameter in the list of parameters.

Return value

A DbParameter instance representing the requested parameter.

Exceptions

Exception type Condition
IndexOutOfRange A parameter with the specified index does not exist in the collection.