Java.Sql.IPreparedStatement.SetNull Method
Sets the value of a specified parameter to SQL NULL.

Syntax

[Android.Runtime.Register("setNull", "(II)V", "GetSetNull_IIHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetNull (int parameterIndex, int sqlType)

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
sqlType
the SQL type of the parameter, as defined in java.sql.Types.

Exceptions

TypeReason
Java.Sql.SQLExceptionif a database error happens.

Remarks

Sets the value of a specified parameter to SQL NULL. Don't use this version of setNull for User Defined Types (UDT) or for REF type parameters.

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1