IChronoLocalDateTime.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.IChronoLocalDateTime, 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.IChronoLocalDateTime, 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.

This queries this date-time using the specified query strategy object. 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 result of this method is obtained by invoking the TemporalQuery#queryFrom(TemporalAccessor) method on the specified query passing this as the argument.

Java documentation for java.time.chrono.ChronoLocalDateTime.query(java.time.temporal.TemporalQuery<R>).

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.

Applies to