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, Int32)

 

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

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

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

Parameters

parameterName
Type: System::String^

The name of the parameter.

odbcType
Type: System.Data.Odbc::OdbcType

One of the OdbcType values.

size
Type: System::Int32

The length of the column.

Return Value

Type: System.Data.Odbc::OdbcParameter^

The index of the new OdbcParameter object.

The following example adds an OdbcParameter to the OdbcCommand.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