Share via


HostName.IsEqual(HostName) Method

Definition

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

public bool IsEqual(HostName hostName);

Parameters

hostName
HostName

A HostName object that is compared with the current HostName.

Returns

Boolean

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.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also