System.Data.OleDb Namespace OleDbParameter Class
Initializes a new instance of the OleDbParameter class. This is the default constructor.
[ VB ]
Overloads Public Sub New ( )
[ C# ]
public OleDbParameter ( );
[ C++ ]
public: OleDbParameter ( );
[ JScript ]
public function OleDbParameter ( );
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( );
myParam.ParameterName = "Description";
myParam.OleDbType = OleDbType.VarChar;
myParam.Direction = ParameterDirection.Output;
myParam.Size = 100;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( )
myParam.ParameterName = "Description"
myParam.OleDbType = OleDbType.VarChar
myParam.Direction = ParameterDirection.Output
myParam.Size = 100
End Sub |
|
C# |
VB |
OleDbParameter Members OleDbParameter Constructor Overload List