Freigeben über


Month.Query(ITemporalQuery) Method

Definition

Queries this month-of-year using the specified query.

[Android.Runtime.Register("query", "(Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "R" })]
public Java.Lang.Object? Query (Java.Time.Temporal.ITemporalQuery? query);
[<Android.Runtime.Register("query", "(Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "R" })>]
abstract member Query : Java.Time.Temporal.ITemporalQuery -> Java.Lang.Object
override this.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 month-of-year using the specified query.

This queries this month-of-year 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.Month.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