Dela via


IResultSet.WasNull Method

Definition

Reports whether the last column read had a value of SQL NULL.

[Android.Runtime.Register("wasNull", "()Z", "GetWasNullHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool WasNull ();
[<Android.Runtime.Register("wasNull", "()Z", "GetWasNullHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WasNull : unit -> bool

Returns

true if the last column value read was SQL NULL and false otherwise

Attributes

Exceptions

if a database error happens.

Remarks

Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was SQL NULL.

Java documentation for java.sql.ResultSet.wasNull().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to