IPAddress.Equals(Object) Method

Definition

Compares two IP addresses.

public:
 override bool Equals(System::Object ^ comparand);
public override bool Equals (object comparand);
public override bool Equals (object? comparand);
override this.Equals : obj -> bool
Public Overrides Function Equals (comparand As Object) As Boolean

Parameters

comparand
Object

An IPAddress instance to compare to the current instance.

Returns

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

Remarks

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

Applies to