ICursor.GetType(Int32) Method

Definition

Returns data type of the given column's value.

[Android.Runtime.Register("getType", "(I)I", "GetGetType_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Database.FieldType GetType (int columnIndex);
[<Android.Runtime.Register("getType", "(I)I", "GetGetType_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetType : int -> Android.Database.FieldType

Parameters

columnIndex
Int32

the zero-based index of the target column.

Returns

column value type

Attributes

Remarks

Returns data type of the given column's value. The preferred type of the column is returned but the data may be converted to other types as documented in the get-type methods such as #getInt(int), #getFloat(int) etc.

Java documentation for android.database.Cursor.getType(int).

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