This documentation is archived and is not being maintained.

OracleParameterCollection.Add Method (Object)

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Adds the specified OracleParameter to the OracleParameterCollection.

[Visual Basic]
Overloads Public Overridable Function Add( _
   ByVal value As Object _
) As Integer Implements IList.Add
public virtual int Add(
 object value
public: virtual int Add(
 Object* value
public function Add(
   value : Object
) : int;


The OracleParameter to add to the collection.

Return Value

The index of the new OracleParameter object.




Exception Type Condition
ArgumentException The OracleParameter specified in the value parameter is already added to this or another OracleParameterCollection.
ArgumentNullException The value parameter is null.
InvalidCastException The value parameter is not an OracleParameter.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleParameterCollection Class | OracleParameterCollection Members | System.Data.OracleClient Namespace | OracleParameterCollection.Add Overload List