PeerApplication.Equals PeerApplication.Equals PeerApplication.Equals PeerApplication.Equals Method

定義

PeerApplication 與指定的物件相比較。Compares the PeerApplication to the specified object.

多載

Equals(Object, Object) Equals(Object, Object) Equals(Object, Object) Equals(Object, Object)

判斷指定的 PeerApplication 物件是否視為相等。Determines whether the specified PeerApplication objects are considered equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較 PeerApplication 和指定的 ObjectCompares the PeerApplication to the specified Object.

Equals(PeerApplication) Equals(PeerApplication) Equals(PeerApplication) Equals(PeerApplication)

比較 PeerApplication 和指定的 PeerApplication 執行個體。Compares the PeerApplication to the specified PeerApplication instance.

Equals(Object, Object) Equals(Object, Object) Equals(Object, Object) Equals(Object, Object)

判斷指定的 PeerApplication 物件是否視為相等。Determines whether the specified PeerApplication objects are considered equal.

public:
 static bool Equals(System::Object ^ objA, System::Object ^ objB);
public static bool Equals (object objA, object objB);
static member Equals : obj * obj -> bool
Public Shared Function Equals (objA As Object, objB As Object) As Boolean

參數

objA
Object Object Object Object

要比較的第一個 PeerApplicationThe first PeerApplication to compare.

objB
Object Object Object Object

要比較的第二個 PeerApplicationThe second PeerApplication to compare.

傳回

如果指定的物件具有相同的全域唯一應用程式 IdDescription,即為 true;否則為 falsetrue if the specified objects have the same globally unique application Id and Description; otherwise, false.

另請參閱

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較 PeerApplication 和指定的 ObjectCompares the PeerApplication to the specified Object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object Object Object Object

要測試是否相等的 ObjectThe Object to test for equality.

傳回

如果 PeerApplication 等於指定的物件執行個體,即為 true;否則為 falsetrue if the PeerApplication is equal to the specified object instance; otherwise, false.

例外狀況

另請參閱

Equals(PeerApplication) Equals(PeerApplication) Equals(PeerApplication) Equals(PeerApplication)

比較 PeerApplication 和指定的 PeerApplication 執行個體。Compares the PeerApplication to the specified PeerApplication instance.

public:
 virtual bool Equals(System::Net::PeerToPeer::Collaboration::PeerApplication ^ other);
public bool Equals (System.Net.PeerToPeer.Collaboration.PeerApplication other);
override this.Equals : System.Net.PeerToPeer.Collaboration.PeerApplication -> bool
Public Function Equals (other As PeerApplication) As Boolean

參數

other
PeerApplication PeerApplication PeerApplication PeerApplication

要測試是否相等的 PeerApplication 執行個體。The PeerApplication instance to test for equality.

傳回

若提供的 PeerApplication 執行個體有相符的資料,即為 true;否則為 falsetrue if the PeerApplication instance provided has matching data; otherwise, false. 此外,如果 otherfalse,這個方法也會傳回 nullThis method also returns false if other is null.

實作

例外狀況

備註

在比較之前的字串上執行不正規化。No normalizations are performed on the strings prior to comparison. 所有的正規化在或之前建構同樣物件時應已完成。All normalization should have been completed while or before constructing the PeerApplication objects.

另請參閱

適用於