Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft