OdbcParameterCollection::Add Method (OdbcParameter^)

 

Adds the specified OdbcParameter to the OdbcParameterCollection.

Namespace:   System.Data.Odbc
Assembly:  System.Data (in System.Data.dll)

public:
OdbcParameter^ Add(
	OdbcParameter^ value
)

Parameters

value
Type: System.Data.Odbc::OdbcParameter^

The OdbcParameter to add to the collection.

Return Value

Type: System.Data.Odbc::OdbcParameter^

The index of the new OdbcParameter object.

Exception Condition
ArgumentException

The OdbcParameter specified in the value parameter is already added to this or another OdbcParameterCollection.

ArgumentNullException

The value parameter is null.

.NET Framework
Available since 1.1
Return to top
Show: