共用方式為


Locale.GetUnicodeLocaleType(String) Method

Definition

Returns the Unicode locale type associated with the specified Unicode locale key for this locale.

[Android.Runtime.Register("getUnicodeLocaleType", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string? GetUnicodeLocaleType (string key);
[<Android.Runtime.Register("getUnicodeLocaleType", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.GetUnicodeLocaleType : string -> string

Parameters

key
String

the Unicode locale key

Returns

The Unicode locale type associated with the key, or null if the locale does not define the key.

Attributes

Remarks

Returns the Unicode locale type associated with the specified Unicode locale key for this locale. Returns the empty string for keys that are defined with no type. Returns null if the key is not defined. Keys are case-insensitive. The key must be two alphanumeric characters ([0-9a-zA-Z]), or an IllegalArgumentException is thrown.

Added in 1.7.

Java documentation for java.util.Locale.getUnicodeLocaleType(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.

Applies to