SqlDateTime.GreaterThan(SqlDateTime, SqlDateTime) SqlDateTime.GreaterThan(SqlDateTime, SqlDateTime) SqlDateTime.GreaterThan(SqlDateTime, SqlDateTime) SqlDateTime.GreaterThan(SqlDateTime, SqlDateTime) Method

定义

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

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

参数

返回

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

适用于

另请参阅