Compartilhar via


SQLiteDatabase.SetMaximumSize(Int64) Method

Definition

Sets the maximum size the database will grow to.

[Android.Runtime.Register("setMaximumSize", "(J)J", "GetSetMaximumSize_JHandler")]
public virtual long SetMaximumSize (long numBytes);
[<Android.Runtime.Register("setMaximumSize", "(J)J", "GetSetMaximumSize_JHandler")>]
abstract member SetMaximumSize : int64 -> int64
override this.SetMaximumSize : int64 -> int64

Parameters

numBytes
Int64

the maximum database size, in bytes

Returns

the new maximum database size

Attributes

Remarks

Sets the maximum size the database will grow to. The maximum size cannot be set below the current size.

Java documentation for android.database.sqlite.SQLiteDatabase.setMaximumSize(long).

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