Insert(int, Object) Method
Syntax:
public void IndexOf(int index, Object value)
Description:
Inserts the specified parameter value(must be of type RdmParameter) into the parameter collection at index.
Parameters:
index
Type: System.Int32
The index in the array where the parameter should be inserted.
value
Type: System.Object
The parameter to be inserted.
Exceptions:
Exception | Condition |
---|---|
ArgumentException | The specified value already exists in the collection. |
ArgumentException | The value is not a valid RdmParameter. |
ArgumentOutOfRangeException | The index specified is less than zero or greater than Count. |
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbParameterCollection.Insert