OleDbParameter Constructor ()


Initializes a new instance of the OleDbParameter class.

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

public OleDbParameter()

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

public void CreateOleDbParameter() 
   OleDbParameter parameter = new OleDbParameter();
   parameter.ParameterName = "Description";
   parameter.OleDbType = OleDbType.VarChar;
   parameter.Direction = ParameterDirection.Output;
   parameter.Size = 88;

.NET Framework
Available since 1.1
Return to top