SqlMoney.Equals 方法

定义

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

重载

Equals(Object)

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

Equals(SqlMoney, SqlMoney)

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

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);
public override bool Equals (object? value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

参数

value
Object

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

返回

Boolean

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

适用于

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 结构。A SqlMoney structure.

y
SqlMoney

SqlMoney 结构。A SqlMoney structure.

返回

SqlBoolean

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

适用于