Dela via


Uri.DisplayIri Property

Definition

Gets the decoded unicode characters that make up the current URI.

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

Property Value

String

Platform::String

winrt::hstring

The decoded unicode characters, when possible. Unsafe values are renamed as percent-encoded UTF-8. Characters in the hostname are decoded if they were encoded usingPunycode.

Remarks

The DisplayIri property is an attempted decode of the string as seen in the AbsoluteCanonicalUri property. You might use this string for display to the user, where showing the encodings would be distracting and would make link text that parallels the Uniform Resource Identifier (URI) difficult to read as text. Unsafe values (values that can't be decoded under the user's codepage) are kept as percent-encoded UTF-8.

Applies to

See also