Short.ValueOf Method

Definition

Overloads

ValueOf(String)

Returns a Short object holding the value given by the specified String.

ValueOf(Int16)

Returns a Short instance representing the specified short value.

ValueOf(String, Int32)

Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument.

ValueOf(String)

Returns a Short object holding the value given by the specified String.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/lang/Short;", "")]
public static Java.Lang.Short? ValueOf (string? s);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/lang/Short;", "")>]
static member ValueOf : string -> Java.Lang.Short

Parameters

s
String

the string to be parsed

Returns

Short

a Short object holding the value represented by the string argument

Attributes

Exceptions

if string cannot be parsed as a short value.

Remarks

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

ValueOf(Int16)

Returns a Short instance representing the specified short value.

[Android.Runtime.Register("valueOf", "(S)Ljava/lang/Short;", "")]
public static Java.Lang.Short? ValueOf (short s);
[<Android.Runtime.Register("valueOf", "(S)Ljava/lang/Short;", "")>]
static member ValueOf : int16 -> Java.Lang.Short

Parameters

s
Int16

a short value.

Returns

Short

a Short instance representing s.

Attributes

Remarks

Java documentation for java.lang.Short.valueOf(short).

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

ValueOf(String, Int32)

Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;I)Ljava/lang/Short;", "")]
public static Java.Lang.Short? ValueOf (string? s, int radix);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;I)Ljava/lang/Short;", "")>]
static member ValueOf : string * int -> Java.Lang.Short

Parameters

s
String

the string to be parsed

radix
Int32

the radix to be used in interpreting s

Returns

Short

a Short object holding the value represented by the string argument in the specified radix.

Attributes

Exceptions

if string cannot be parsed as a short value, or radix Character.MAX_RADIX.

Remarks

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

See also

  • <xref:Java.Lang.Short.ParseShort(System.String%2c+System.Int32)>

Applies to