SqlMoney.Equals SqlMoney.Equals SqlMoney.Equals SqlMoney.Equals Method

定义

对两个结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two structures to determine whether they are equal.

重载

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的对象参数与 Value 对象的 SqlMoney 属性进行比较。Compares the supplied object parameter to the Value property of the SqlMoney object.

Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的对象参数与 Value 对象的 SqlMoney 属性进行比较。Compares the supplied object parameter to the Value property of the SqlMoney object.

public:
 override bool Equals(System::Object ^ value);
public override bool Equals (object value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

参数

value
Object Object Object Object

要比较的对象。The object to be compared.

返回

如果对象是 SqlMoney 的实例并且两者相等,则返回 true;否则,返回 falsetrue if the object is an instance of SqlMoney and the two are equal; otherwise, false.

另请参阅

Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney) Equals(SqlMoney, SqlMoney)

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

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

参数

x
SqlMoney SqlMoney SqlMoney SqlMoney

一个 SqlMoney 结构。A SqlMoney structure.

y
SqlMoney SqlMoney SqlMoney SqlMoney

一个 SqlMoney 结构。A SqlMoney structure.

返回

如果两个值相等,则为 truetrue if the two values are equal. 否则为 falseOtherwise, false. 如果任一实例为 null,则 SqlMoney 将为 null。If either instance is null, then the SqlMoney will be null.

另请参阅

适用于