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

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);
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