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
Available since 1.1
Return to top