IEra.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;", "GetGetDisplayName_Ljava_time_format_TextStyle_Ljava_util_Locale_Handler:Java.Time.Chrono.IEra, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual 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;", "GetGetDisplayName_Ljava_time_format_TextStyle_Ljava_util_Locale_Handler:Java.Time.Chrono.IEra, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
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
- Attributes
Remarks
Gets the textual representation of this era.
This returns the textual name used to identify the era, suitable for presentation to the user. The parameters control the style of the returned text and the locale.
If no textual mapping is found then the #getValue() numeric value
is returned.
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.