System.Data.OleDb Namespace OleDbParameter Class
Checks whether the parameter accepts null values.
Script |
OleDbParameter.IsNullable [ = true | false ] |
This property accepts or returns only a boolean value: true if null values are accepted; otherwise, false. The default is false.
IDataParameter.IsNullable
Null values are handled using the DBNull class.
The following example initializes an OleDbParameter and sets some of its properties.
public void CreateOleDbParameter ( ) {
OleDbParameter myParam = new OleDbParameter ( "Description", OleDbType.VarChar, 100 );
myParam.IsNullable = true;
myParam.Direction = ParameterDirection.Output;
}
Public Sub CreateOleDbParameter ( )
Dim myParam As New OleDbParameter ( "Description", OleDbType.VarChar, 100 )
myParam.IsNullable = true
myParam.Direction = ParameterDirection.Output
End Sub |
|
C# |
VB |
OleDbParameter Members