语言

Calendar.GetDisplayNames(Int32, Int32, Locale) 方法

定义

返回一个Map包含给定field日历style及其相应字段值的所有名称locale。

[Android.Runtime.Register("getDisplayNames", "(IILjava/util/Locale;)Ljava/util/Map;", "GetGetDisplayNames_IILjava_util_Locale_Handler")]
public virtual System.Collections.Generic.IDictionary<string,Java.Lang.Integer>? GetDisplayNames(int field, int style, Java.Util.Locale locale);
[<Android.Runtime.Register("getDisplayNames", "(IILjava/util/Locale;)Ljava/util/Map;", "GetGetDisplayNames_IILjava_util_Locale_Handler")>]
abstract member GetDisplayNames : int * int * Java.Util.Locale -> System.Collections.Generic.IDictionary<string, Java.Lang.Integer>
override this.GetDisplayNames : int * int * Java.Util.Locale -> System.Collections.Generic.IDictionary<string, Java.Lang.Integer>

参数

field
Int32

返回显示名称的日历字段

style
Int32

应用于字符串表示形式的样式;其中一个()、、(#SHORT_FORMAT#SHORT、#SHORT_STANDALONE、、#LONG_FORMAT或 #LONG#LONG_STANDALONE#NARROW_FORMAT#NARROW_STANDALONE

locale
Locale

显示名称的区域设置

返回

包含Map所有显示名称及其stylelocale字段值,或者null如果未定义显示名称field

特性

例外

如果 locale == null

如果 field 或 style 无效

注解

Java文档java.util.Calendar.getDisplayNames(int, int, java.util.Locale)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于