SqlSingle.Equals 方法

定義

執行兩個結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two structures to determine whether they are equal.

多載

Equals(Object)

將提供的物件參數與 Value 物件的 SqlSingle 屬性相比較。Compares the supplied object parameter to the Value property of the SqlSingle object.

Equals(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are equal.

Equals(Object)

將提供的物件參數與 Value 物件的 SqlSingle 屬性相比較。Compares the supplied object parameter to the Value property of the SqlSingle 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

參數

value
Object

要比較的物件。The object to be compared.

傳回

如果物件是 SqlSingle 的執行個體,並且兩者相等,則為 truetrue if the object is an instance of SqlSingle and the two are equal. 否則為 falseOtherwise, false.

另請參閱

Equals(SqlSingle, SqlSingle)

執行兩個 SqlSingle 參數的邏輯比對,以判斷它們是否相等。Performs a logical comparison of the two SqlSingle parameters to determine whether they are equal.

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

參數

x
SqlSingle

SqlSingle 結構。A SqlSingle structure.

y
SqlSingle

SqlSingle 結構。A SqlSingle structure.

傳回

如果兩個值相等,則為 truetrue if the two values are equal. 否則為 falseOtherwise, false. 如果任一執行個體是 null,則 SqlSingle 會是 null。If either instance is null, then the SqlSingle will be null.

另請參閱

適用於