SqlString.Equals Method

Definition

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

Overloads

Equals(SqlString, SqlString)

Performs a logical comparison of the two SqlString operands to determine whether they are equal.

Equals(SqlString)

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 SqlString object.

Equals(SqlString, SqlString)

Performs a logical comparison of the two SqlString operands to determine whether they are equal.

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

Parameters

Returns

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

See also

Applies to

Equals(SqlString)

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

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

Parameters

other
SqlString

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 SqlString 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 SqlString and the two are equal; otherwise, false.

See also

Applies to