System::DateTime::operator+ 方法

DateTime::operator+ method

返回一个新的 DateTime 类实例,表示当前对象的值与指定时间跨度之和的日期时间值。

DateTime System::DateTime::operator+(TimeSpan value) const
ParameterType描述
valueTimeSpan要添加到当前对象所表示的值的时间间隔

ReturnValue

一个新的 DateTime 类实例,表示当前对象的值与 value 之和的日期时间值。

另见