다음을 통해 공유


ITemporalField.GetDisplayName(Locale) Method

Definition

Gets the display name for the field in the requested locale.

[Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler:Java.Time.Temporal.ITemporalField, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual string? GetDisplayName (Java.Util.Locale? locale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler:Java.Time.Temporal.ITemporalField, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member GetDisplayName : Java.Util.Locale -> string
override this.GetDisplayName : Java.Util.Locale -> string

Parameters

locale
Locale

the locale to use, not null

Returns

the display name for the locale or a suitable default, not null

Attributes

Remarks

Gets the display name for the field in the requested locale.

If there is no display name for the locale then a suitable default must be returned.

The default implementation must check the locale is not null and return toString().

Java documentation for java.time.temporal.TemporalField.getDisplayName(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