طريقة System::Globalization::Calendar::AddYears

Calendar::AddYears method

يضيف سنوات إلى نقطة الوقت.

virtual DateTime System::Globalization::Calendar::AddYears(DateTime time, int years) const
ParameterTypeالوصف
الوقتDateTimeقيمة النقطة الزمنية الأصلية.
سنواتintعدد السنوات للإضافة.

ReturnValue

نقطة الوقت بعد الانتهاء من الحساب.

انظر أيضًا