Calendar.ValidateFields Method

Definition

Ensure that each field is within its valid range by calling #validateField(int) on each field that has been set.

[Android.Runtime.Register("validateFields", "()V", "GetValidateFieldsHandler", ApiSince=24)]
protected virtual void ValidateFields ();
[<Android.Runtime.Register("validateFields", "()V", "GetValidateFieldsHandler", ApiSince=24)>]
abstract member ValidateFields : unit -> unit
override this.ValidateFields : unit -> unit
Attributes

Remarks

Ensure that each field is within its valid range by calling #validateField(int) on each field that has been set. This method should only be called if this calendar is not lenient.

Java documentation for android.icu.util.Calendar.validateFields().

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