Calendar.GetDisplayName 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.
Overloads
| Name | Description |
|---|---|
| GetDisplayName(ULocale) |
Returns a name for this calendar. |
| GetDisplayName(Locale) |
Returns a name for this calendar. |
GetDisplayName(ULocale)
Returns a name for this calendar.
[Android.Runtime.Register("getDisplayName", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "GetGetDisplayName_Landroid_icu_util_ULocale_Handler", ApiSince=24)]
public virtual string? GetDisplayName(Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register("getDisplayName", "(Landroid/icu/util/ULocale;)Ljava/lang/String;", "GetGetDisplayName_Landroid_icu_util_ULocale_Handler", ApiSince=24)>]
abstract member GetDisplayName : Android.Icu.Util.ULocale -> string
override this.GetDisplayName : Android.Icu.Util.ULocale -> string
Parameters
- loc
- ULocale
The requested locale. The base implementation does not use this argument.
Returns
The Java class name of this calendar in the base implementation.
- Attributes
Remarks
The base implementation returns the Java class name and does not use the locale.
Java documentation for android.icu.util.Calendar.getDisplayName(android.icu.util.ULocale).
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
GetDisplayName(Locale)
Returns a name for this calendar.
[Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler", ApiSince=24)]
public virtual string? GetDisplayName(Java.Util.Locale? loc);
[<Android.Runtime.Register("getDisplayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetGetDisplayName_Ljava_util_Locale_Handler", ApiSince=24)>]
abstract member GetDisplayName : Java.Util.Locale -> string
override this.GetDisplayName : Java.Util.Locale -> string
Parameters
- loc
- Locale
The requested locale. The base implementation does not use this argument.
Returns
The Java class name of this calendar in the base implementation.
- Attributes
Remarks
The base implementation returns the Java class name and does not use the locale.
Java documentation for android.icu.util.Calendar.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.