IPPacketInformation.Equality(IPPacketInformation, IPPacketInformation) 运算符

定义

测试两个指定的 IPPacketInformation 实例是否相等。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

参数

packetInformation1
IPPacketInformation

相等运算符左侧的 IPPacketInformation 实例。The IPPacketInformation instance that is to the left of the equality operator.

packetInformation2
IPPacketInformation

相等运算符右侧的 IPPacketInformation 实例。The IPPacketInformation instance that is to the right of the equality operator.

返回

Boolean

如果 packetInformation1packetInformation2 相等,则为 true;否则为 falsetrue if packetInformation1 and packetInformation2 are equal; otherwise, false.

注解

此运算符测试两个 Address 参数的和 Interface 值。This operator tests both the Address and Interface values for both arguments.

此运算符的等效方法为 Equals(Object)The equivalent method for this operator is Equals(Object).

适用于