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 (String^, OdbcType)

 

Adds an OdbcParameter to the OdbcParameterCollection, given the parameter name and data type.

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

public:
OdbcParameter^ Add(
	String^ parameterName,
	OdbcType odbcType
)

Parameters

parameterName
Type: System::String^

The name of the parameter.

odbcType
Type: System.Data.Odbc::OdbcType

One of the OdbcType values.

Return Value

Type: System.Data.Odbc::OdbcParameter^

The index of the new OdbcParameter object.

The following example adds an OdbcParameter to the Parameters collection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft