Java.Util.GregorianCalendar.Add Method
Adds the specified amount to a Calendar field.

Syntax

[Android.Runtime.Register("add", "(II)V", "GetAdd_IIHandler")]
public override void Add ([Android.Runtime.GeneratedEnum] CalendarField field, int value)

Parameters

field
the Calendar field to modify.
value
the amount to add to the field.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the specified field is DST_OFFSET or ZONE_OFFSET.

Remarks

Adds the specified amount to a Calendar field.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1