SqlDateTime.Subtract(SqlDateTime, TimeSpan) SqlDateTime.Subtract(SqlDateTime, TimeSpan) SqlDateTime.Subtract(SqlDateTime, TimeSpan) SqlDateTime.Subtract(SqlDateTime, TimeSpan) Method

定义

从此 SqlDateTime 实例中减去指定的 TimespanSubtracts the specified Timespan from this SqlDateTime instance.

public:
 static System::Data::SqlTypes::SqlDateTime Subtract(System::Data::SqlTypes::SqlDateTime x, TimeSpan t);
public static System.Data.SqlTypes.SqlDateTime Subtract (System.Data.SqlTypes.SqlDateTime x, TimeSpan t);
static member Subtract : System.Data.SqlTypes.SqlDateTime * TimeSpan -> System.Data.SqlTypes.SqlDateTime
Public Shared Function Subtract (x As SqlDateTime, t As TimeSpan) As SqlDateTime

参数

t
TimeSpan TimeSpan TimeSpan TimeSpan

一个 Timespan 值。A Timespan value.

返回

适用于

另请参阅