System.Data.OleDb Namespace
Sets or retrieves the OleDbType of the parameter.
Script |
OleDbParameter.OleDbType [ = enumValue ] |
The property is read/write with a default value of VarWChar.
Use the OleDbType property to specify or determine the OleDbType data type of a given parameter.
OleDbType and DbType are linked. Setting the OleDbType changes the DbType to a supported OleDbType enum value.
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 100 );
myParam.Direction = ParameterDirection.Output;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members