GregorianCalendar.Add(CalendarField, Int32) GregorianCalendar.Add(CalendarField, Int32) Method

Definition

Adds the specified amount to a Calendar field.

[Android.Runtime.Register("add", "(II)V", "GetAdd_IIHandler")]
public override void Add (Java.Util.CalendarField field, int amount);
override this.Add : Java.Util.CalendarField * int -> unit

Parameters

field
CalendarField CalendarField

the Calendar field to modify.

amount
Int32 Int32

Exceptions

if the specified field is DST_OFFSET or ZONE_OFFSET.

Remarks

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