Språk

ContentValues.GetAsLong(String) Method

Definition

Gets a value and converts it to a Long.

[Android.Runtime.Register("getAsLong", "(Ljava/lang/String;)Ljava/lang/Long;", "")]
public long GetAsLong(string key);
[<Android.Runtime.Register("getAsLong", "(Ljava/lang/String;)Ljava/lang/Long;", "")>]
member this.GetAsLong : string -> int64

Parameters

key
String

the value to get

Returns

the Long value. The Java method returns null if the value is missing or cannot be converted. This method cannot return null; in that case it throws an exception.

Attributes

Remarks

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.

Java documentation for android.content.ContentValues.getAsLong(java.lang.String).

Applies to