Export (0) Print
Expand All

IPAddress.Equals Method

Compares two IP addresses.

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

abstract Equals : 
        comparand:Object -> bool  
override Equals : 
        comparand:Object -> bool

Parameters

comparand
Type: System.Object

An IPAddress instance to compare to the current instance.

Return Value

Type: System.Boolean
true if the two addresses are equal; otherwise, false.

The Equals method compares the current IPAddress instance with the comparand parameter and returns true if the two instances contain the same IP address.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft