IChronoZonedDateTime.ITemporalAccessor.Get(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 value of a field as a 32-bit integer.
[Android.Runtime.Register("get", "(Ljava/time/temporal/TemporalField;)I", "GetGet_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
override sealed int ITemporalAccessor.Get(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("get", "(Ljava/time/temporal/TemporalField;)I", "GetGet_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.Get : Java.Time.Temporal.ITemporalField -> int
override this.Java.Time.Temporal.ITemporalAccessor.Get : Java.Time.Temporal.ITemporalField -> int
Parameters
- field
- ITemporalField
The field to read. It must not be null.
Returns
The field value within its valid range.
Implements
- Attributes
Remarks
This member implements Get(ITemporalField). Access it through ITemporalAccessor.
The method throws UnsupportedTemporalTypeException if the field is not supported or its range does not fit in a 32-bit integer. Use GetLong(ITemporalField) for fields with a wider range. A DateTimeException is thrown if the value cannot be obtained or is outside the valid range.
Java reference for the inherited java.time.temporal.TemporalAccessor.get contract.