Android.Database.Sqlite.SQLiteDatabase.SetLocale Method
Sets the locale for this database.

Syntax

[Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler")]
public virtual void SetLocale (Java.Util.Locale locale)

Parameters

locale
The new locale.

Exceptions

TypeReason
Android.Database.SQLExceptionif the locale could not be set. The most common reason for this is that there is no collator available for the locale you requested. In this case the database remains unchanged.

Remarks

Sets the locale for this database. Does nothing if this database has the SQLiteDatabase.NO_LOCALIZED_COLLATORS flag set or was opened read only.

[Android Documentation]

Requirements

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