Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HostName.IsEqual | isEqual method

Determines whether the specified HostName object has an equivalent value to the current HostName object.

Syntax


var boolean = hostName.isEqual(hostName);

Parameters

hostName

Type: HostName

A HostName object that is compared with the current HostName.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

A Boolean value that indicates whether the specified HostName object is equal to the current HostName object.

Remarks

The Equals method determines whether the HostName object specified by the hostName parameter is the same instance of the current HostName object.

The IsEqual method determines whether the HostName object specified by the hostName parameter has an equivalent value to the current HostName object. Two HostName objects are considered to have the equivalent value if the CanonicalName property has the same value.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking
Windows::Networking [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking
Windows::Networking [C++]

Metadata

Windows.winmd

See also

DatagramSocket
HostName
StreamSocket

 

 

Show:
© 2015 Microsoft