Partager via


DnsEndPoint.Equals Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Compares two DnsEndPoint objects.

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

Syntax

'Declaration
Public Overrides Function Equals ( _
    comparand As Object _
) As Boolean
public override bool Equals(
    Object comparand
)

Parameters

Return Value

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

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.