Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Uri.Domain Property

Definition

Namespace:
Windows.Foundation

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

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


Feedback

Was this page helpful?