Uredi

Deli z drugimi prek


IPPacketInformation.Equality(IPPacketInformation, IPPacketInformation) Operator

Definition

Tests whether two specified IPPacketInformation instances are equivalent.

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 ( = ) : System.Net.Sockets.IPPacketInformation * System.Net.Sockets.IPPacketInformation -> bool
Public Shared Operator == (packetInformation1 As IPPacketInformation, packetInformation2 As IPPacketInformation) As Boolean

Parameters

packetInformation1
IPPacketInformation

The IPPacketInformation instance that is to the left of the equality operator.

packetInformation2
IPPacketInformation

The IPPacketInformation instance that is to the right of the equality operator.

Returns

true if packetInformation1 and packetInformation2 are equal; otherwise, false.

Remarks

This operator tests both the Address and Interface values for both arguments.

The equivalent method for this operator is Equals(Object).

Applies to