Uri.Host Property

Definition

Gets the fully qualified domain name.

public:
 property Platform::String ^ Host { Platform::String ^ get(); };
winrt::hstring Host();
public string Host { get; }
var string = uri.host;
Public ReadOnly Property Host As String

Property Value

String

The fully qualified domain name.

Remarks

If the domain name is subject to Punycode encoding as shown in AbsoluteCanonicalUri, the Host property shows the decoded value, not the Punycode encoded value.

Applies to