JapaneseEra.GetDisplayName(TextStyle, 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.
Gets the textual representation of this era.
[Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)]
public string? GetDisplayName(Java.Time.Format.TextStyle? style, Java.Util.Locale? locale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=29)>]
abstract member GetDisplayName : Java.Time.Format.TextStyle * Java.Util.Locale -> string
override this.GetDisplayName : Java.Time.Format.TextStyle * Java.Util.Locale -> string
Parameters
- style
- TextStyle
the style of the text required, not null
- locale
- Locale
the locale to use, not null
Returns
the text value of the era, not null
Implements
- Attributes
Remarks
Gets the textual representation of this era. The built-in eras use the specified style and locale; if no textual mapping is found, the numeric value is returned. For supplemental eras, the configured era name or narrow abbreviation is returned without using the locale to select the text.
Java reference for java.time.chrono.JapaneseEra.getDisplayName.
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.