Add(Object) Method

Syntax:

public int Add(Object value)

Description:

Adds a new RdmParameter object to the collection that with a Value of value.

Parameters:

value

Type: System.Object

The Value of the RdmParameter to add to the collection.

Return Value:

Type: System.Int32

The zero-based index of the new RdmParameter object in the collection.

Exceptions:

Exception Condition
ArgumentException The specified value already exists in the collection.
ArgumentException The value is not a valid RdmParameter.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbParameterCollection.Add