UdpReceiveResult.Equals UdpReceiveResult.Equals UdpReceiveResult.Equals UdpReceiveResult.Equals Method

定義

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

多載

Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult)

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

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

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult)

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

public:
 virtual bool Equals(System::Net::Sockets::UdpReceiveResult other);
public bool Equals (System.Net.Sockets.UdpReceiveResult other);
override this.Equals : System.Net.Sockets.UdpReceiveResult -> bool
Public Function Equals (other As UdpReceiveResult) As Boolean

參數

other
UdpReceiveResult UdpReceiveResult UdpReceiveResult UdpReceiveResult

與這個執行個體相互比較的物件。The object to compare with this instance.

傳回

如果 otherUdpReceiveResult 的執行個體,並且等於該執行個體的值,則為 true,否則為 falsetrue if other is an instance of UdpReceiveResult and equals the value of the instance; otherwise, false.

實作

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

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a 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

與這個執行個體相互比較的物件。The object to compare with this instance.

傳回

如果 objUdpReceiveResult 的執行個體,並且等於該執行個體的值,則為 true,否則為 falsetrue if obj is an instance of UdpReceiveResult and equals the value of the instance; otherwise, false.

適用於