DB2®ParameterCollection.GetParameter(string) Method
Returns the DbParameter object with the specified name in the DB2ParameterCollection.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Overrides Function GetParameter (parameterName As String) As DbParameter
[C#]
public override DbParameter GetParameter (string parameterName)
[C++]
public:
virtual DbParameter^ GetParameter (String^ parameterName) override
[JScript]
public override function GetParameter (parameterName : String) : DbParameter
Parameters
- parameterName
- The name of the parameter.
Return value
A DbParameter instance representing the requested parameter.
Exceptions
Exception type | Condition |
---|---|
IndexOutOfRange | A parameter with the specified name does not exist in the collection. |