Aracılığıyla paylaş


IChronology.GetDisplayName(TextStyle, Locale) Method

Definition

Gets the textual representation of this chronology.

[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.IChronology, 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.IChronology, 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 chronology, not null

Attributes

Remarks

Gets the textual representation of this chronology.

This returns the textual name used to identify the chronology, suitable for presentation to the user. The parameters control the style of the returned text and the locale.

Java documentation for java.time.chrono.Chronology.getDisplayName(java.time.format.TextStyle, 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.

Applies to