Share via


IPAddress.Equals Method

Compares a specified IP address with the current IP address.

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

Syntax

public override bool Equals (
         Objectcomparand
)

Parameters

  • comparand
    An object that specifies the IP address to be compared with the current IP address.

Return Value

true if the two IP addresses are equal; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

IPAddress Class
IPAddress Members
System.Net Namespace