IChronoZonedDateTime.ITemporalAccessor.Range(ITemporalField) 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.
Gets the range of valid values for a field.
[Android.Runtime.Register("range", "(Ljava/time/temporal/TemporalField;)Ljava/time/temporal/ValueRange;", "GetRange_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
override sealed Java.Time.Temporal.ValueRange? ITemporalAccessor.Range(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("range", "(Ljava/time/temporal/TemporalField;)Ljava/time/temporal/ValueRange;", "GetRange_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Java.Time.Temporal.ITemporalAccessor.Range : Java.Time.Temporal.ITemporalField -> Java.Time.Temporal.ValueRange
override this.Java.Time.Temporal.ITemporalAccessor.Range : Java.Time.Temporal.ITemporalField -> Java.Time.Temporal.ValueRange
Parameters
- field
- ITemporalField
The field whose range is required. It must not be null.
Returns
The field range, which is not null.
Implements
- Attributes
Remarks
This member implements Range(ITemporalField). Access it through ITemporalAccessor.
The range describes the minimum and maximum valid values. Values between these bounds are not necessarily all valid. The method throws UnsupportedTemporalTypeException if the field is not supported, or DateTimeException if the range cannot be obtained for another reason.
For a field that is not a ChronoField, the field determines the range through its rangeRefinedBy(TemporalAccessor) method.
Java reference for the inherited java.time.temporal.TemporalAccessor.range contract.