Partager via


Long Constructors

Definition

Overloads

Long(Int64)

Constructs a newly allocated Long object that represents the specified long argument.

Long(String)

Constructs a newly allocated Long object that represents the long value indicated by the String parameter.

Long(Int64)

Constructs a newly allocated Long object that represents the specified long argument.

[Android.Runtime.Register(".ctor", "(J)V", "")]
public Long (long value);
[<Android.Runtime.Register(".ctor", "(J)V", "")>]
new Java.Lang.Long : int64 -> Java.Lang.Long

Parameters

value
Int64

the value to be represented by the Long object.

Attributes

Remarks

Java documentation for java.lang.Long.Long(long).

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

Long(String)

Constructs a newly allocated Long object that represents the long value indicated by the String parameter.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Long (string s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.Long : string -> Java.Lang.Long

Parameters

s
String

the String to be converted to a Long.

Attributes

Exceptions

if string cannot be parsed as a long value.

Remarks

Java documentation for java.lang.Long.Long(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.

See also

Applies to