Uri.Domain Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.