SqlDecimal.Equality(SqlDecimal, SqlDecimal) SqlDecimal.Equality(SqlDecimal, SqlDecimal) SqlDecimal.Equality(SqlDecimal, SqlDecimal) SqlDecimal.Equality(SqlDecimal, SqlDecimal) Operator

定义

对两个 SqlDecimal 操作数执行逻辑比较,以确定它们是否相等。Performs a logical comparison of the two SqlDecimal operands to determine whether they are equal.

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

参数

返回

一个 SqlBoolean,它在两个实例相等时为 True,在两个实例不等时为 FalseA SqlBoolean that is True if the two instances are equal or False if the two instances are not equal. 如果 SqlDecimal 的任一实例为空,则 ValueSqlBoolean 将为 NullIf either instance of SqlDecimal is null, the Value of the SqlBoolean will be Null.

注解

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

适用于

另请参阅