Uri.Domain Property

Definition

Gets the domain name component, including top-level domain, from a Uniform Resource Identifier (URI).

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

Property Value

String

Platform::String

winrt::hstring

The domain name.

Remarks

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

Applies to

See also