Share via


ULocale 类

定义

[Android.Runtime.Register("android/icu/util/ULocale", ApiSince=24, DoNotGenerateAcw=true)]
public sealed class ULocale : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.IComparable
[<Android.Runtime.Register("android/icu/util/ULocale", ApiSince=24, DoNotGenerateAcw=true)>]
type ULocale = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface IComparable
继承
ULocale
属性
实现

注解

Android 平台文档

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

构造函数

ULocale(String)
ULocale(String, String)
ULocale(String, String, String)

字段

PrivateUseExtension
UnicodeLocaleExtension

属性

BaseName
Canada
CanadaFrench
CharacterOrientation
China
Chinese
Class

返回此 Object的运行时类。

(继承自 Object)
Country
Default
DisplayCountry
DisplayLanguage
DisplayLanguageWithDialect
DisplayName
DisplayNameWithDialect
DisplayScript
DisplayVariant
English
ExtensionKeys
Fallback
France
French
German
Germany
Handle

基础 Android 实例的句柄。

(继承自 Object)
ISO3Country
ISO3Language
IsRightToLeft
Italian
Italy
Japan
Japanese
JniIdentityHashCode (继承自 Object)
JniPeerMembers
Keywords
Korea
Korean
Language
LineOrientation
Name
PeerReference (继承自 Object)
Prc
Root
Script
SimplifiedChinese
Taiwan
ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

(继承自 Object)
ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

(继承自 Object)
TraditionalChinese
Uk
UnicodeLocaleAttributes
UnicodeLocaleKeys
Us
Variant

方法

AcceptLanguage(String, Boolean[])
AcceptLanguage(String, ULocale[], Boolean[])
AcceptLanguage(ULocale[], Boolean[])
AcceptLanguage(ULocale[], ULocale[], Boolean[])
AddLikelySubtags(ULocale)
Canonicalize(String)
Clone()
CompareTo(ULocale)
CreateCanonical(String)
CreateCanonical(ULocale)
Dispose() (继承自 Object)
Dispose(Boolean) (继承自 Object)
Equals(Object)

指示其他某个对象是否“等于”此对象。

(继承自 Object)
ForLanguageTag(String)
ForLocale(Locale)
GetAvailableLocales()
GetAvailableLocalesByType(ULocale+AvailableType)
GetBaseName(String)
GetCountry(String)
GetDefault(ULocale+Category)
GetDisplayCountry(String, String)
GetDisplayCountry(String, ULocale)
GetDisplayCountry(ULocale)
GetDisplayKeyword(String)
GetDisplayKeyword(String, String)
GetDisplayKeyword(String, ULocale)
GetDisplayKeywordValue(String)
GetDisplayKeywordValue(String, String, String)
GetDisplayKeywordValue(String, String, ULocale)
GetDisplayKeywordValue(String, ULocale)
GetDisplayLanguage(String, String)
GetDisplayLanguage(String, ULocale)
GetDisplayLanguage(ULocale)
GetDisplayLanguageWithDialect(String, String)
GetDisplayLanguageWithDialect(String, ULocale)
GetDisplayLanguageWithDialect(ULocale)
GetDisplayName(String, String)
GetDisplayName(String, ULocale)
GetDisplayName(ULocale)
GetDisplayNameWithDialect(String, String)
GetDisplayNameWithDialect(String, ULocale)
GetDisplayNameWithDialect(ULocale)
GetDisplayScript(String, String)
GetDisplayScript(String, ULocale)
GetDisplayScript(ULocale)
GetDisplayVariant(String, String)
GetDisplayVariant(String, ULocale)
GetDisplayVariant(ULocale)
GetExtension(Char)
GetFallback(String)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
GetISO3Country(String)
GetISO3Language(String)
GetISOCountries()
GetISOLanguages()
GetKeywords(String)
GetKeywordValue(String)
GetKeywordValue(String, String)
GetLanguage(String)
GetName(String)
GetScript(String)
GetUnicodeLocaleType(String)
GetVariant(String)
JavaFinalize()

当垃圾回收确定不再引用对象时,由对象上的垃圾回收器调用。

(继承自 Object)
MinimizeSubtags(ULocale)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetKeywordValue(String, String)
SetKeywordValue(String, String, String)
ToArray<T>() (继承自 Object)
ToLanguageTag()
ToLegacyKey(String)
ToLegacyType(String, String)
ToLocale()
ToString()

返回对象的字符串表示形式。

(继承自 Object)
ToUnicodeLocaleKey(String)
ToUnicodeLocaleType(String, String)
UnregisterFromRuntime() (继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)

显式接口实现

IComparable.CompareTo(Object)
IJavaPeerable.Disposed() (继承自 Object)
IJavaPeerable.DisposeUnlessReferenced() (继承自 Object)
IJavaPeerable.Finalized() (继承自 Object)
IJavaPeerable.JniManagedPeerState (继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

适用于