Share via


IPPacketInformation.Inequality Operatör

Tanım

Belirtilen IPPacketInformation iki örneğin eşit olup olmadığını test eder.

public:
 static bool operator !=(System::Net::Sockets::IPPacketInformation packetInformation1, System::Net::Sockets::IPPacketInformation packetInformation2);
public static bool operator != (System.Net.Sockets.IPPacketInformation packetInformation1, System.Net.Sockets.IPPacketInformation packetInformation2);
static member op_Inequality : System.Net.Sockets.IPPacketInformation * System.Net.Sockets.IPPacketInformation -> bool
Public Shared Operator != (packetInformation1 As IPPacketInformation, packetInformation2 As IPPacketInformation) As Boolean

Parametreler

packetInformation1
IPPacketInformation

IPPacketInformation Eşitsizlik işlecinin solundaki örnek.

packetInformation2
IPPacketInformation

IPPacketInformation Eşitsizlik işlecinin sağındaki örnek.

Döndürülenler

trueve eşit değilsepacketInformation1; değilse, false.packetInformation2

Açıklamalar

Bu işleç, her iki bağımsız değişken için de Address ve Interface değerlerini test eder.

Bu işlecin eşdeğer yöntemi şudur: Equals(Object).

Şunlara uygulanır