IPAddress.Equals(Object) IPAddress.Equals(Object) IPAddress.Equals(Object) IPAddress.Equals(Object) Method

Definition

Compares two IP addresses.

public:
 override bool Equals(System::Object ^ comparand);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public override bool Equals (object comparand);
override this.Equals : obj -> bool
Public Overrides Function Equals (comparand As Object) As Boolean
Parameters
comparand
Object Object Object 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