Equals Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Compares two IP addresses.

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

'Declaration
Public Overrides Function Equals ( _
	obj As Object _
) As Boolean

Parameters

obj
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.

Show: