Language

Locale.IsoCountryCode.ValueOf(String) Method

Definition

Returns the enum constant of this class with the specified name.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/util/Locale$IsoCountryCode;", "", ApiSince=34)]
public static Java.Util.Locale.IsoCountryCode? ValueOf(string? name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Ljava/util/Locale$IsoCountryCode;", "", ApiSince=34)>]
static member ValueOf : string -> Java.Util.Locale.IsoCountryCode

Parameters

name
String

The Java enum name, such as PART1_ALPHA2.

Returns

the enum constant with the specified name

Attributes

Remarks

Returns the enum constant with the specified Java name. The name must match exactly, including case, and must not contain extra whitespace.

Java reference for java.util.Locale.IsoCountryCode.valueOf.

Applies to