Language

IChronoZonedDateTime.IsSupported(ITemporalField) Method

Definition

Checks if the specified field is supported.

[Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool IsSupported(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTimeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsSupported : Java.Time.Temporal.ITemporalField -> bool

Parameters

field
ITemporalField

the field to check, null returns false

Returns

true if the implementation reports that the field is supported; otherwise false

Implements

Attributes

Remarks

Checks if the specified field is supported by this date-time. If false, then calling the range, get and with(TemporalField, long) methods will throw an exception. The set of supported fields is defined by the chronology and normally includes all ChronoField fields. A standard Japanese chronology zoned date-time can report AlignedWeekOfMonth as supported even though reading that field throws. If the field is not a ChronoField, then the result of this method is obtained by invoking TemporalField.isSupportedBy(TemporalAccessor) passing this as the argument. Whether the field is supported is determined by the field.

Java reference for java.time.chrono.ChronoZonedDateTime.isSupported.

Applies to