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 ReadOnly Property IdnHost As String

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: