ITemporalAccessor.IsSupported(ITemporalField) Method
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.
Checks if the specified field is supported.
[Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Temporal.ITemporalAccessorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool IsSupported(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Temporal.ITemporalAccessorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member IsSupported : Java.Time.Temporal.ITemporalField -> bool
- field
- ITemporalField
the field to check, null returns false
true if this date-time can be queried for the field, false if not
- Attributes
Checks if the specified field is supported.
This checks if the date-time can be queried for the specified field. If false, then calling the #range(TemporalField) range
and #get(TemporalField) get
methods will throw an exception.
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.
Produkt | Versioner |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |