DB2ParameterCollection.Insert Method

Inserts a DB2Parameter into the collection at the specified index.

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

Syntax


[Visual Basic]
NotOverridable Public Sub Insert( _
   ByVal index As Integer, _
   ByVal value As Object _
)
[C#]
public void Insert(
   int index,
   object value
);
[C++]
public: __sealed void Insert(
   int index,
   Object* value
);
[JScript]
public function Insert(
   index : int,
   value : Object
);

Parameters

index
The zero-based index where the parameter is to be inserted within the collection.
value
The DB2®Parameter to add to the collection.

Exceptions

Exception type Condition
ArgumentNullException The value parameter is null.
IndexOutOfRange A parameter with the specified name does not exist in the collection.
InvalidCastException The value parameter was not a DB2Parameter .