DB2ParameterCollection.Add (Object) Method

Adds the specified DB2Parameter to the DB2Command.

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

Syntax


[Visual Basic]
NotOverridable Overloads Public Function Add( _
   ByVal value As Object _
) As Integer Implements IList.Add
[C#]
public int Add(
   object value
);
[C++]
public: __sealed int Add(
   Object* value
);
[JScript]
public function Add(
   value : Object
) : int;
Implements:
IList.Add

Parameters

value
The DB2®Parameter to add to the DB2Command .

Return value

An integer value representing the index of the specified DB2Parameter object.

Exceptions

Exception type Condition
ArgumentException The parameter specified by value already exists.
ArgumentNullException The value parameter is null.
InvalidCastException The value parameter is not a DB2Parameter .