SqlDateTime.GreaterThanOrEqual(SqlDateTime, SqlDateTime) 方法

定义

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

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

参数

x
SqlDateTime

SqlDateTime 结构。A SqlDateTime structure.

y
SqlDateTime

SqlDateTime 结构。A SqlDateTime structure.

返回

SqlBoolean

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

适用于