Language

IChronoZonedDateTime.ITemporalAccessor.Query(ITemporalQuery) Method

Definition

Queries this date-time using the specified query.

[Android.Runtime.Register("query", "(Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;", "GetQuery_Ljava_time_temporal_TemporalQuery_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "R" })]
override sealed Java.Lang.Object? ITemporalAccessor.Query(Java.Time.Temporal.ITemporalQuery? query);
[<Android.Runtime.Register("query", "(Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;", "GetQuery_Ljava_time_temporal_TemporalQuery_Handler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "R" })>]
abstract member Java.Time.Temporal.ITemporalAccessor.Query : Java.Time.Temporal.ITemporalQuery -> Java.Lang.Object
override this.Java.Time.Temporal.ITemporalAccessor.Query : Java.Time.Temporal.ITemporalQuery -> Java.Lang.Object

Parameters

query
ITemporalQuery

the query to invoke, not null

Returns

the query result, null may be returned (defined by the query)

Implements

Attributes

Remarks

Queries this date-time using the specified query. The TemporalQuery object defines the logic to be used to obtain the result. Read the documentation of the query to understand what the result of this method will be. The default implementation handles the standard zone, zone ID, offset, local time, chronology, and precision queries directly. For other queries, it invokes QueryFrom(ITemporalAccessor) with this date-time.

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

Applies to