Android Guides | Samples

Android.OS.BaseBundle.GetLong Method

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Syntax

[Android.Runtime.Register("getLong", "(Ljava/lang/String;J)J", "GetGetLong_Ljava_lang_String_JHandler")]
public virtual Int64 GetLong (String key, Int64 defaultValue)

Parameters

key
a String
defaultValue
Value to return if key does not exist

Remarks

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0