Windows apps
Collapse the table of content
Expand the table of content
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.

Uri::IdnHost Property

.NET Framework (current version)
 

The RFC 3490 compliant International Domain Name of the host, using Punycode as appropriate.

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

public:
property String^ IdnHost {
	String^ get();
}

Property Value

Type: System::String^

Returns the hostname, formatted with Punycode according to the IDN standard.String.

This property is provided for the use of lower-level networking protocols that require the domain name in Punycode form. If your code does not require that specific format, use Host for the hostname.

The deprecated DnsSafeHost property is dependent on app.config settings, which cannot be changed by Windows Store applications. This property is provided as the preferred alternative to using DnsSafeHost, because IdnHost is guaranteed to always be DNS safe, no matter what the current app.config settings might be.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft