System.Data.OleDb Namespace OleDbParameter Class
Sets or retrieves the native data type of the parameter.
Script |
OleDbParameter.DBType [ = enumValue ] |
enumValue |
One of the DBType values. |
The property is read/write with a default value of Variant.
IDataParameter.DbType
Use the DBType property to specify or determine the native data type of a given parameter.
DbType and OleDbType are linked. Setting the DbType changes the OleDbType 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", DbType.VarChar, 100 );
myParam.Direction = ParameterDirection.Output;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", DbType.VarChar, 100 )
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members