Java.Lang.Long.Decode Method
Parses the specified string and returns a Long instance if the string can be decoded into a long value.

Syntax

[Android.Runtime.Register("decode", "(Ljava/lang/String;)Ljava/lang/Long;", "")]
public static Long Decode (string string)

Parameters

string
a string representation of a long value.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NumberFormatExceptionif string cannot be parsed as a long value.

Remarks

Parses the specified string and returns a Long instance if the string can be decoded into a long value. The string may be an optional optional sign character ("-" or "+") followed by a hexadecimal ("0x..." or "#..."), octal ("0..."), or decimal ("...") representation of a long.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1