DnsEndPoint.Equals Method (Object)

 

Compares two DnsEndPoint objects.

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

public override bool Equals(
	object comparand
)

Parameters

comparand
Type: System.Object

A DnsEndPoint instance to compare to the current instance.

Return Value

Type: System.Boolean

true if the two DnsEndPoint instances are equal; otherwise, false.

The Equals method compares the current DnsEndPoint instance with the comparand parameter and returns true if the two instances contain the same endpoint.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: