SQLiteQueryBuilder.SetProjectionMap(IDictionary<String,String>) Method

Definition

Sets the projection map for the query.

[Android.Runtime.Register("setProjectionMap", "(Ljava/util/Map;)V", "GetSetProjectionMap_Ljava_util_Map_Handler")]
public virtual void SetProjectionMap (System.Collections.Generic.IDictionary<string,string>? columnMap);
[<Android.Runtime.Register("setProjectionMap", "(Ljava/util/Map;)V", "GetSetProjectionMap_Ljava_util_Map_Handler")>]
abstract member SetProjectionMap : System.Collections.Generic.IDictionary<string, string> -> unit
override this.SetProjectionMap : System.Collections.Generic.IDictionary<string, string> -> unit

Parameters

columnMap
IDictionary<String,String>

maps from the user column names to the database column names

Attributes

Remarks

Sets the projection map for the query. The projection map maps from column names that the caller passes into query to database column names. This is useful for renaming columns as well as disambiguating column names when doing joins. For example you could map "name" to "people.name". If a projection map is set it must contain all column names the user may request, even if the key and value are the same.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.setProjectionMap(java.util.Map<java.lang.String, java.lang.String>).

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