ResultSet.wasNull(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reports whether the last column read has the value SQL NULL.
public:
virtual bool wasNull(int _ColumnID);
public virtual bool wasNull (int _ColumnID);
abstract member wasNull : int -> bool
override this.wasNull : int -> bool
Public Overridable Function wasNull (_ColumnID As Integer) As Boolean
Parameters
- _ColumnID
- Int32
The column ID.
Returns
true if the last column read has the value SQL nullNothingnullptrunita null reference (Nothing in Visual Basic); otherwise false.
Remarks
You must first call a get method, like the ResultSet.getInt method, on a column to try to read its value; then call the wasNull method to find whether the value was the SQL NULL.