SqlGuid.Equals 方法

定義

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

多載

Equals(Object)

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

Equals(SqlGuid, SqlGuid)

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

Equals(Object)

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

傳回

Boolean

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

另請參閱

適用於

Equals(SqlGuid, SqlGuid)

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

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

參數

x
SqlGuid

SqlGuid 結構。A SqlGuid structure.

y
SqlGuid

SqlGuid 結構。A SqlGuid structure.

傳回

SqlBoolean

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

另請參閱

適用於