25 references to AddYears
mscorlib (15)
system\datetimeoffset.cs (1)
440
return new DateTimeOffset(ClockDateTime.
AddYears
(years), Offset);
system\timezoneinfo.cs (14)
1617
ambiguousStartModified = ambiguousStart.
AddYears
(1);
1618
ambiguousEndModified = ambiguousEnd.
AddYears
(1);
1625
ambiguousStartModified = ambiguousStart.
AddYears
(-1);
1626
ambiguousEndModified = ambiguousEnd.
AddYears
(-1);
1647
endTime = endTime.
AddYears
(startTimeYear - endTimeYear);
1653
time = time.
AddYears
(startTimeYear - timeYear);
1715
startModifiedAmbiguousTime = startAmbiguousTime.
AddYears
(1);
1716
endModifiedAmbiguousTime = endAmbiguousTime.
AddYears
(1);
1723
startModifiedAmbiguousTime = startAmbiguousTime.
AddYears
(-1);
1724
endModifiedAmbiguousTime = endAmbiguousTime.
AddYears
(-1);
1781
startModifiedInvalidTime = startInvalidTime.
AddYears
(1);
1782
endModifiedInvalidTime = endInvalidTime.
AddYears
(1);
1789
startModifiedInvalidTime = startInvalidTime.
AddYears
(-1);
1790
endModifiedInvalidTime = endInvalidTime.
AddYears
(-1);
PresentationFramework (1)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
584
nextDate = startDate.
AddYears
(1);
System.ServiceModel (1)
System\ServiceModel\Channels\SelfSignedCertificate.cs (1)
30
DateTime.UtcNow.
AddYears
(DefaultLifeSpanInYears),
System.Web (1)
RequestTimeoutManager.cs (1)
62
CancelTimedOutRequests(DateTime.UtcNow.
AddYears
(1)); // future date
System.Web.DataVisualization (2)
Common\General\ChartElement.cs (1)
1335
date = date.
AddYears
((int)Math.Floor(interval));
Common\General\Label.cs (1)
318
labelEnd = DateTime.FromOADate(labelStart).
AddYears
((int)labelsStep).ToOADate();
System.Web.Extensions (3)
ClientServices\Providers\ClientData.cs (2)
61
DateTime.UtcNow.
AddYears
(-1),
65
DateTime.UtcNow.
AddYears
(-1),
Script\Services\WebServiceClientProxyGenerator.cs (1)
63
cachePolicy.SetExpires(lastModifiedDate.
AddYears
(-1));
System.Windows.Forms.DataVisualization (2)
Common\General\ChartElement.cs (1)
1335
date = date.
AddYears
((int)Math.Floor(interval));
Common\General\Label.cs (1)
318
labelEnd = DateTime.FromOADate(labelStart).
AddYears
((int)labelsStep).ToOADate();