SqlMoney.Equals Method

Definition

Performs a logical comparison of two structures to determine whether they are equal.

Overloads

Equals(SqlMoney)

Indicates whether the current instance is equal to another instance of the same type.

Equals(Object)

Compares the supplied object parameter to the Value property of the SqlMoney object.

Equals(SqlMoney, SqlMoney)

Performs a logical comparison of the two SqlMoney parameters to determine whether they are equal.

Equals(SqlMoney)

Indicates whether the current instance is equal to another instance of the same type.

public:
 virtual bool Equals(System::Data::SqlTypes::SqlMoney other);
public bool Equals (System.Data.SqlTypes.SqlMoney other);
override this.Equals : System.Data.SqlTypes.SqlMoney -> bool
Public Function Equals (other As SqlMoney) As Boolean

Parameters

other
SqlMoney

An instance to compare with this instance.

Returns

true if the current instance is equal to the other instance; otherwise, false.

Implements

Applies to

Equals(Object)

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

Parameters

value
Object

The object to be compared.

Returns

true if the object is an instance of SqlMoney and the two are equal; otherwise, false.

See also

Applies to

Equals(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

Parameters

x
SqlMoney

A SqlMoney structure.

y
SqlMoney

A SqlMoney structure.

Returns

true if the two values are equal. Otherwise, false. If either instance is null, then the SqlMoney will be null.

See also

Applies to