System::TimeSpan::operator- 方法

TimeSpan::operator-() const method

返回一个表示当前 TimeSpan 对象取反值的新 TimeSpan 实例。

TimeSpan System::TimeSpan::operator-() const

另见

TimeSpan::operator-(TimeSpan) const method

返回一个新的 TimeSpan 类实例,表示一个时间间隔,该间隔是用指定对象表示的时间间隔从当前对象表示的时间间隔中减去后的结果。

TimeSpan System::TimeSpan::operator-(TimeSpan value) const
参数类型描述
valueTimeSpan用于表示要减去的时间间隔的 TimeSpan 对象

ReturnValue

一个新的 TimeSpan 类实例,表示一个时间间隔,该间隔是用指定对象表示的时间间隔从当前对象表示的时间间隔中减去后的结果。

另见