[]
public override DateTime AddYears(DateTime time, int years)
Type | Name | Description |
---|---|---|
DateTime | time | The DateTime to which to add years. |
int | years | The number of years to add. |
Type | Description |
---|---|
DateTime | The DateTime that results from adding the specified number of years to the specified DateTime. |
Type | Condition |
---|---|
ArgumentOutOfRangeException | time is outside the supported range of the JapaneseCalendarEx type. -or-years is less than -10,000 or greater than 10,000. |
ArgumentException | The resulting DateTime is outside the supported range. |