asp.net.ph

OleDbParameter.IsNullable Property

System.Data.OleDb Namespace   OleDbParameter Class


Checks whether the parameter accepts null values.

Syntax


Script OleDbParameter.IsNullable [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true if null values are accepted; otherwise, false. The default is false.

Implements

IDataParameter.IsNullable

Remarks

Null values are handled using the DBNull class.

Example

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;
}
  C# VB

See Also

OleDbParameter Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph