SqlDateTime.Equals Method

Definition

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

Overloads

Equals(SqlDateTime, SqlDateTime)

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

Equals(Object)

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

Equals(SqlDateTime)

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

Equals(SqlDateTime, SqlDateTime)

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

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

Parameters

x
SqlDateTime

A SqlDateTime structure.

y
SqlDateTime

A SqlDateTime structure.

Returns

SqlBoolean

true if the two values are equal. Otherwise, false.

See also

Applies to

Equals(Object)

Compares the supplied object parameter to the Value property of the SqlDateTime 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

Boolean

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

See also

Applies to

Equals(SqlDateTime)

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

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

Parameters

other
SqlDateTime

An instance to compare with this instance.

Returns

Boolean

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

Implements

Applies to