Export (0) Print
Expand All

OdbcParameter Constructor

Initializes a new instance of the OdbcParameter class.

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

public OdbcParameter()

The base constructor initializes all fields to their default values.

The following example creates an OdbcParameter and sets some of its properties.

public void CreateOdbcParameter() 
{
   OdbcParameter parameter = new OdbcParameter();
   parameter.ParameterName = "Description";
   parameter.OdbcType = OdbcType.VarChar;
   parameter.Direction = ParameterDirection.Output;
   parameter.Size = 88;
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft