UdpReceiveResult.Inequality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Inequality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Inequality(UdpReceiveResult, UdpReceiveResult) UdpReceiveResult.Inequality(UdpReceiveResult, UdpReceiveResult) Operator

定義

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

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 op_Inequality : 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 not equal operator.

right
UdpReceiveResult UdpReceiveResult UdpReceiveResult UdpReceiveResult

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

傳回

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

適用於