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

 

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

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

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

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.

sourceColumn
Type: System::String^

The name of the source column.

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