Equality Operator
Collapse the table of content
Expand the table of content

IPPacketInformation.Equality Operator (IPPacketInformation, IPPacketInformation)

 
equivalentCodeEntityM:System.Net.Sockets.IPPacketInformation.Equals(System.Net.Sockets.IPPacketInformation,System.Net.Sockets.IPPacketInformation)

Tests whether two specified IPPacketInformation instances are equivalent.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

public static bool operator ==(
	IPPacketInformation packetInformation1,
	IPPacketInformation packetInformation2
)

Parameters

packetInformation1
Type: System.Net.Sockets.IPPacketInformation

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

packetInformation2
Type: System.Net.Sockets.IPPacketInformation

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

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft