Freigeben über


Calendar.ValidateField Method

Definition

Overloads

ValidateField(CalendarField)

Validate a single field of this calendar.

ValidateField(CalendarField, Int32, Int32)

Validate a single field of this calendar given its minimum and maximum allowed value.

ValidateField(CalendarField)

Validate a single field of this calendar.

[Android.Runtime.Register("validateField", "(I)V", "GetValidateField_IHandler", ApiSince=24)]
protected virtual void ValidateField (Android.Icu.Util.CalendarField field);
[<Android.Runtime.Register("validateField", "(I)V", "GetValidateField_IHandler", ApiSince=24)>]
abstract member ValidateField : Android.Icu.Util.CalendarField -> unit
override this.ValidateField : Android.Icu.Util.CalendarField -> unit

Parameters

Attributes

Remarks

Validate a single field of this calendar. Subclasses should override this method to validate any calendar-specific fields. Generic fields can be handled by Calendar.validateField().

Java documentation for android.icu.util.Calendar.validateField(int).

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

ValidateField(CalendarField, Int32, Int32)

Validate a single field of this calendar given its minimum and maximum allowed value.

[Android.Runtime.Register("validateField", "(III)V", "", ApiSince=24)]
protected void ValidateField (Android.Icu.Util.CalendarField field, int min, int max);
[<Android.Runtime.Register("validateField", "(III)V", "", ApiSince=24)>]
member this.ValidateField : Android.Icu.Util.CalendarField * int * int -> unit

Parameters

min
Int32
max
Int32
Attributes

Remarks

Validate a single field of this calendar given its minimum and maximum allowed value. If the field is out of range, throw a descriptive IllegalArgumentException. Subclasses may use this method in their implementation of #validateField(int).

Java documentation for android.icu.util.Calendar.validateField(int, int, int).

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