Calendar.Builder.Set(CalendarField, Int32) Method
Definition
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.
Sets the field parameter to the given value.
[Android.Runtime.Register("set", "(II)Ljava/util/Calendar$Builder;", "GetSet_IIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder Set(Java.Util.CalendarField field, int value);
[<Android.Runtime.Register("set", "(II)Ljava/util/Calendar$Builder;", "GetSet_IIHandler", ApiSince=26)>]
abstract member Set : Java.Util.CalendarField * int -> Java.Util.Calendar.Builder
override this.Set : Java.Util.CalendarField * int -> Java.Util.Calendar.Builder
Parameters
- field
- CalendarField
an index to the Calendar fields
- value
- Int32
the field value
Returns
this Calendar.Builder
- Attributes
Remarks
Sets the field parameter to the given value. field is an index to the Calendar.fields, such as DAY_OF_MONTH. Field value validation is not performed in this method. Any out of range values are either normalized in lenient mode or detected as an invalid value in non-lenient mode when building a Calendar.
Java reference for java.util.Calendar.Builder.set.
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.