Udostępnij za pośrednictwem


SQLiteDatabase.ConflictFail Field

Definition

Caution

This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.

When a constraint violation occurs, the command aborts with a return code SQLITE_CONSTRAINT.

[Android.Runtime.Register("CONFLICT_FAIL")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)]
public const Android.Database.Sqlite.Conflict ConflictFail = 3;
[<Android.Runtime.Register("CONFLICT_FAIL")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)>]
val mutable ConflictFail : Android.Database.Sqlite.Conflict

Field Value

Value = 3
Attributes

Remarks

When a constraint violation occurs, the command aborts with a return code SQLITE_CONSTRAINT. But any changes to the database that the command made prior to encountering the constraint violation are preserved and are not backed out.

Java documentation for android.database.sqlite.SQLiteDatabase.CONFLICT_FAIL.

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