Język

Calendar.ValidateField Method

Definition

Overloads

Name Description
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

field
CalendarField

The calendar field whose stored value is to be checked.

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

field
CalendarField

The calendar field whose stored value is to be checked.

min
Int32

The inclusive lower bound for the field value.

max
Int32

The inclusive upper bound for the field value.

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