Share via


HostName.IsEqual(HostName) Method

Definition

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

public:
 virtual bool IsEqual(HostName ^ hostName) = IsEqual;
bool IsEqual(HostName const& hostName);
public bool IsEqual(HostName hostName);
function isEqual(hostName)
Public Function IsEqual (hostName As HostName) As Boolean

Parameters

hostName
HostName

A HostName object that is compared with the current HostName.

Returns

Boolean

bool

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

See also