Long.ParseLong Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParseLong(String) |
Parses the string argument as a signed decimal |
ParseLong(String, Int32) |
Parses the string argument as a signed |
ParseLong(ICharSequence, Int32, Int32, Int32) |
Parses the |
ParseLong(String, Int32, Int32, Int32) |
Parses the |
ParseLong(String)
Parses the string argument as a signed decimal long
.
[Android.Runtime.Register("parseLong", "(Ljava/lang/String;)J", "")]
public static long ParseLong (string s);
[<Android.Runtime.Register("parseLong", "(Ljava/lang/String;)J", "")>]
static member ParseLong : string -> int64
Parameters
- s
- String
a String
containing the long
representation to be parsed
Returns
the long
represented by the argument in
decimal.
- Attributes
Exceptions
if string
cannot be parsed as a long value.
Remarks
Java documentation for java.lang.Long.parseLong(java.lang.String)
.
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
ParseLong(String, Int32)
Parses the string argument as a signed long
in the
radix specified by the second argument.
[Android.Runtime.Register("parseLong", "(Ljava/lang/String;I)J", "")]
public static long ParseLong (string s, int radix);
[<Android.Runtime.Register("parseLong", "(Ljava/lang/String;I)J", "")>]
static member ParseLong : string * int -> int64
Parameters
- s
- String
the String
containing the
long
representation to be parsed.
- radix
- Int32
the radix to be used while parsing s
.
Returns
the long
represented by the string argument in
the specified radix.
- Attributes
Exceptions
if string
cannot be parsed as a long value, or
radix Character.MAX_RADIX
.
Remarks
Java documentation for java.lang.Long.parseLong(java.lang.String, 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
ParseLong(ICharSequence, Int32, Int32, Int32)
Parses the CharSequence
argument as a signed long
in
the specified radix
, beginning at the specified
beginIndex
and extending to endIndex - 1
.
[Android.Runtime.Register("parseLong", "(Ljava/lang/CharSequence;III)J", "", ApiSince=33)]
public static long ParseLong (Java.Lang.ICharSequence s, int beginIndex, int endIndex, int radix);
[<Android.Runtime.Register("parseLong", "(Ljava/lang/CharSequence;III)J", "", ApiSince=33)>]
static member ParseLong : Java.Lang.ICharSequence * int * int * int -> int64
Parameters
the CharSequence
containing the long
representation to be parsed
- beginIndex
- Int32
the beginning index, inclusive.
- endIndex
- Int32
the ending index, exclusive.
- radix
- Int32
the radix to be used while parsing s
.
Returns
the signed long
represented by the subsequence in
the specified radix.
- Attributes
Remarks
Java documentation for java.lang.Long.parseLong(java.lang.CharSequence, int, int, 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
ParseLong(String, Int32, Int32, Int32)
Parses the CharSequence
argument as a signed long
in
the specified radix
, beginning at the specified
beginIndex
and extending to endIndex - 1
.
public static long ParseLong (string s, int beginIndex, int endIndex, int radix);
static member ParseLong : string * int * int * int -> int64
Parameters
- s
- String
the CharSequence
containing the long
representation to be parsed
- beginIndex
- Int32
the beginning index, inclusive.
- endIndex
- Int32
the ending index, exclusive.
- radix
- Int32
the radix to be used while parsing s
.
Returns
the signed long
represented by the subsequence in
the specified radix.
Remarks
Java documentation for java.lang.Long.parseLong(java.lang.CharSequence, int, int, 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.