Parameters
- time
- The System.DateTime to which to add years.
- years
- The number of years to add.
Return Value
The System.DateTime that results from adding the specified number of years to the specified System.DateTime.
| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | time is outside the supported range of the JapaneseCalendarEx type. -or-years is less than -10,000 or greater than 10,000. |
| System.ArgumentException | The resulting System.DateTime is outside the supported range. |