Udostępnij za pośrednictwem


JSONArray.GetLong(Int32) Method

Definition

Returns the value at index if it exists and is a long or can be coerced to a long.

[Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler")]
public virtual long GetLong (int index);
[<Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler")>]
abstract member GetLong : int -> int64
override this.GetLong : int -> int64

Parameters

index
Int32

Returns

Attributes

Exceptions

if the value at index doesn't exist or cannot be coerced to a long.

Remarks

Returns the value at index if it exists and is a long or can be coerced to a long.

Java documentation for org.json.JSONArray.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