Calendar.GetDisplayNames(Int32, Int32, Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Map
containing all names of the calendar
field
in the given style
and
locale
and their corresponding field values.
[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>
Parameters
- field
- Int32
the calendar field for which the display names are returned
- style
- Int32
the style applied to the string representation; one of #SHORT_FORMAT
(#SHORT
), #SHORT_STANDALONE
,
#LONG_FORMAT
(#LONG
), #LONG_STANDALONE
,
#NARROW_FORMAT
, or #NARROW_STANDALONE
- locale
- Locale
the locale for the display names
Returns
a Map
containing all display names in
style
and locale
and their
field values, or null
if no display names
are defined for field
- Attributes
Exceptions
if locale == null
if field
or style
is invalid
Remarks
Java documentation for java.util.Calendar.getDisplayNames(int, int, java.util.Locale)
.
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.