Adds a specified number of years to the value of the current instance.
- value
- A int containing the number of years. value can be positive or negative.
A DateTime instance set to the sum of the date and time represented by the current instance and the number of years represented by value.
Type Reason ArgumentOutOfRangeException The resulting DateTime is less than DateTime.MinValue or greater than DateTime.MaxValue.
Documentation for this section has not yet been entered.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0