Locale Locale Constructors

Definition

Overloads

Locale(String) Locale(String)

Constructs a new Locale using the specified language.

Locale(String, String) Locale(String, String)

Constructs a new Locale using the specified language and country codes.

Locale(String, String, String) Locale(String, String, String)

Constructs a new Locale using the specified language, country, and variant codes.

Locale(String) Locale(String)

Constructs a new Locale using the specified language.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Locale (string language);
new Java.Util.Locale : string -> Java.Util.Locale

Parameters

language
String String

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.

Locale(String, String) Locale(String, String)

Constructs a new Locale using the specified language and country codes.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public Locale (string language, string country);
new Java.Util.Locale : string * string -> Java.Util.Locale

Parameters

language
String String
country
String String

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.

Locale(String, String, String) Locale(String, String, String)

Constructs a new Locale using the specified language, country, and variant codes.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")]
public Locale (string language, string country, string variant);
new Java.Util.Locale : string * string * string -> Java.Util.Locale

Parameters

language
String String
country
String String
variant
String String

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