DateFormat.Field.OfCalendarField(CalendarField) 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.
Returns the Field constant that corresponds to the Calendar field calendarField.
[Android.Runtime.Register("ofCalendarField", "(I)Landroid/icu/text/DateFormat$Field;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat.Field OfCalendarField(Android.Icu.Util.CalendarField calendarField);
[<Android.Runtime.Register("ofCalendarField", "(I)Landroid/icu/text/DateFormat$Field;", "", ApiSince=24)>]
static member OfCalendarField : Android.Icu.Util.CalendarField -> Android.Icu.Text.DateFormat.Field
Parameters
- calendarField
- CalendarField
Calendar field constant
Returns
Field associated with the calendarField, or null if no associated Field is available.
- Attributes
Remarks
Returns the Field constant that corresponds to the Calendar field calendarField. If there is no corresponding Field is available, null is returned.
Android reference for android.icu.text.DateFormat.Field.ofCalendarField.
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.