Condividi tramite


CursorWindow.GetLong(Int32, Int32) Method

Definition

Gets the value of the field at the specified row and column index as a long.

[Android.Runtime.Register("getLong", "(II)J", "GetGetLong_IIHandler")]
public virtual long GetLong (int row, int column);
[<Android.Runtime.Register("getLong", "(II)J", "GetGetLong_IIHandler")>]
abstract member GetLong : int * int -> int64
override this.GetLong : int * int -> int64

Parameters

row
Int32

The zero-based row index.

column
Int32

The zero-based column index.

Returns

The value of the field as a long.

Attributes

Remarks

Gets the value of the field at the specified row and column index as a long.

The result is determined as follows: <ul> <li>If the field is of type Cursor#FIELD_TYPE_NULL, then the result is 0L.</li> <li>If the field is of type Cursor#FIELD_TYPE_STRING, then the result is the value obtained by parsing the string value with strtoll. <li>If the field is of type Cursor#FIELD_TYPE_INTEGER, then the result is the long value.</li> <li>If the field is of type Cursor#FIELD_TYPE_FLOAT, then the result is the floating-point value converted to a long.</li> <li>If the field is of type Cursor#FIELD_TYPE_BLOB, then a SQLiteException is thrown.</li> </ul>

Java documentation for android.database.CursorWindow.getLong(int, 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