Thread.State.ValueOf(String) Method

Definition

Returns the thread state constant with the specified name.

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

Parameters

name
String

The name of the enumeration constant.

Returns

The enumeration constant with the specified name.

Attributes

Exceptions

if no thread state constant has the specified name.

if name is null.

Remarks

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