Langue

TimeUnit.ValueOf(String) Method

Definition

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;", "")]
public static Java.Util.Concurrent.TimeUnit? ValueOf(string? name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;", "")>]
static member ValueOf : string -> Java.Util.Concurrent.TimeUnit

Parameters

name
String

the name of the enum constant to be returned.

Returns

the enum constant with the specified name

Attributes

Remarks

Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)

Java reference for java.util.concurrent.TimeUnit.valueOf.

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