UdpReceiveResult.Equality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Equality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Equality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Equality(UdpReceiveResult, UdpReceiveResult) Operator

定義

測試兩個指定的 UdpReceiveResult 執行個體是否相等。Tests whether two specified UdpReceiveResult instances are equivalent.

public:
 static bool operator ==(System::Net::Sockets::UdpReceiveResult left, System::Net::Sockets::UdpReceiveResult right);
public static bool operator == (System.Net.Sockets.UdpReceiveResult left, System.Net.Sockets.UdpReceiveResult right);
static member ( = ) : System.Net.Sockets.UdpReceiveResult * System.Net.Sockets.UdpReceiveResult -> bool
Public Shared Operator == (left As UdpReceiveResult, right As UdpReceiveResult) As Boolean

參數

left
UdpReceiveResult UdpReceiveResult UdpReceiveResult UdpReceiveResult

在相等運算子左邊的 UdpReceiveResult 執行個體。The UdpReceiveResult instance that is to the left of the equality operator.

right
UdpReceiveResult UdpReceiveResult UdpReceiveResult UdpReceiveResult

在相等運算子右方的 UdpReceiveResult 執行個體。The UdpReceiveResult instance that is to the right of the equality operator.

傳回

如果 leftright 相等,則為 true;否則為 falsetrue if left and right are equal; otherwise, false.

適用於