Share via


SQLiteQueryBuilder.StrictColumns Property

Definition

Get if the query is marked as strict, as last configured by #setStrictColumns(boolean). -or- When enabled, verify that all projections and ContentValues only contain valid columns as defined by #setProjectionMap(Map).

public virtual bool StrictColumns { [Android.Runtime.Register("isStrictColumns", "()Z", "GetIsStrictColumnsHandler", ApiSince=30)] get; [Android.Runtime.Register("setStrictColumns", "(Z)V", "GetSetStrictColumns_ZHandler", ApiSince=30)] set; }
[<get: Android.Runtime.Register("isStrictColumns", "()Z", "GetIsStrictColumnsHandler", ApiSince=30)>]
[<set: Android.Runtime.Register("setStrictColumns", "(Z)V", "GetSetStrictColumns_ZHandler", ApiSince=30)>]
member this.StrictColumns : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Get if the query is marked as strict, as last configured by #setStrictColumns(boolean).

Java documentation for android.database.sqlite.SQLiteQueryBuilder.isStrictColumns().

Property setter documentation:

When enabled, verify that all projections and ContentValues only contain valid columns as defined by #setProjectionMap(Map).

This enforcement applies to #insert, #query, and #update operations. Any enforcement failures will throw an IllegalArgumentException.

This feature is disabled by default on each newly constructed SQLiteQueryBuilder and needs to be manually enabled.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.setStrictColumns(boolean).

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