Udostępnij za pośrednictwem


ICursor.GetLong(Int32) Method

Definition

Returns the value of the requested column as a long.

[Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long GetLong (int columnIndex);
[<Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetLong : int -> int64

Parameters

columnIndex
Int32

the zero-based index of the target column.

Returns

the value of that column as a long.

Attributes

Remarks

Returns the value of the requested column as a long.

The result and whether this method throws an exception when the column value is null, the column type is not an integral type, or the integer value is outside the range [Long.MIN_VALUE, Long.MAX_VALUE] is implementation-defined.

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