SqlDateTime.LessThan(SqlDateTime, SqlDateTime) SqlDateTime.LessThan(SqlDateTime, SqlDateTime) SqlDateTime.LessThan(SqlDateTime, SqlDateTime) SqlDateTime.LessThan(SqlDateTime, SqlDateTime) Operator

定义

SqlDateTime 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlDateTime to determine whether the first is less than the second.

public:
 static System::Data::SqlTypes::SqlBoolean operator <(System::Data::SqlTypes::SqlDateTime x, System::Data::SqlTypes::SqlDateTime y);
public static System.Data.SqlTypes.SqlBoolean operator < (System.Data.SqlTypes.SqlDateTime x, System.Data.SqlTypes.SqlDateTime y);
static member ( < ) : System.Data.SqlTypes.SqlDateTime * System.Data.SqlTypes.SqlDateTime -> System.Data.SqlTypes.SqlBoolean
Public Shared Operator < (x As SqlDateTime, y As SqlDateTime) As SqlBoolean

参数

返回

一个 SqlBoolean,如果第一个实例小于第二个实例,则它为 TrueA SqlBoolean that is True if the first instance is less than the second instance. 否则为 FalseOtherwise, False. 如果 SqlDateTime 的任一实例为空,则 ValueSqlBoolean 将为 NullIf either instance of SqlDateTime is null, the Value of the SqlBoolean will be Null.

注解

此运算符的等效方法是SqlDateTime.LessThan(SqlDateTime, SqlDateTime)The equivalent method for this operator is SqlDateTime.LessThan(SqlDateTime, SqlDateTime)

适用于

另请参阅