GetParameterByIndex()
- Last UpdatedJul 22, 2024
- 1 minute read
Use the GetParameterByIndex() method to retrieve output or to return parameters after the command object has been processed. If the parameter cannot be evaluated, the returned value is null.
Syntax
object GetParameterByIndex(
int Index)
Parameters
Index
1-based parameter index.
Remarks
You must provide a one-based parameter index.
Note: Use this method only for parameters defined in an OLEDB-type query, as specified by the connection object. If the connection type is not OleDb, null is returned.