SQLiteDatabase.NeedUpgrade(Int32) Method

Definition

Returns true if the new version code is greater than the current database version.

[Android.Runtime.Register("needUpgrade", "(I)Z", "GetNeedUpgrade_IHandler")]
public virtual bool NeedUpgrade (int newVersion);
[<Android.Runtime.Register("needUpgrade", "(I)Z", "GetNeedUpgrade_IHandler")>]
abstract member NeedUpgrade : int -> bool
override this.NeedUpgrade : int -> bool

Parameters

newVersion
Int32

The new version code.

Returns

True if the new version code is greater than the current database version.

Attributes

Remarks

Returns true if the new version code is greater than the current database version.

Java documentation for android.database.sqlite.SQLiteDatabase.needUpgrade(int).

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